1
0

update publish workflow

This commit is contained in:
2022-06-24 18:30:45 +02:00
parent 6bf6177910
commit 014c9a9013

View File

@@ -1,8 +1,8 @@
name: Publish name: Publish (pre)
on: on:
release: release:
types: [created] types: [published]
jobs: jobs:
publish-npm: publish-npm:
@@ -13,7 +13,7 @@ jobs:
with: with:
node-version: 12 node-version: 12
registry-url: https://registry.npmjs.org/ registry-url: https://registry.npmjs.org/
- run: npm publish --access public - run: npm publish --tag pre --access public
env: env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
@@ -25,6 +25,6 @@ jobs:
with: with:
node-version: 12 node-version: 12
registry-url: https://npm.pkg.github.com/ registry-url: https://npm.pkg.github.com/
- run: npm publish --access public - run: npm publish --tag pre --access public
env: env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}