From 04e145b5eb36f63eb92b40afb3cd90fb2e2aa248 Mon Sep 17 00:00:00 2001 From: Niklas von Hertzen Date: Sat, 8 Aug 2020 14:46:43 +0800 Subject: [PATCH] Update CI --- .github/workflows/ci.yml | 16 ++++------------ .github/workflows/release.yml | 8 +++++++- 2 files changed, 11 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0ba4bd4..eb714ca 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -226,22 +226,14 @@ jobs: asset_content_type: text/javascript - name: Unpack npm run: cd npm && tar -xvzf "html2canvas.tgz" - - uses: actions/setup-node@v1 - with: - node-version: 12 - registry-url: 'https://npm.pkg.github.com' - - name: NPM Publish (github) - run: cd npm/package && npm publish - env: - NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - uses: actions/setup-node@v1 with: node-version: 12 registry-url: 'https://registry.npmjs.org' -# - name: NPM Publish -# run: cd npm/package && npm publish public -# env: -# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + - name: NPM Publish + run: cd npm/package && npm publish --dry-run + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} docs: runs-on: ubuntu-latest name: Build docs diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0256391..8897935 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,4 +24,10 @@ jobs: git config user.email "niklasvh@gmail.com" - name: Create release run: npm run release -- --preset eslint --${{ github.event.inputs.version }} - + - name: Print details + run: | + cat package.json + cat CHANGELOG.md + git tag + - name: Push git version + run: git push --follow-tags origin master