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