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