Update CI

This commit is contained in:
Niklas von Hertzen 2020-08-08 14:46:43 +08:00
parent 003cfd9073
commit 04e145b5eb
2 changed files with 11 additions and 13 deletions

View File

@ -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

View File

@ -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