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:
release:
types: [created]
types: [published]
jobs:
publish-npm:
@@ -13,7 +13,7 @@ jobs:
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: npm publish --access public
- run: npm publish --tag pre --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
@@ -25,6 +25,6 @@ jobs:
with:
node-version: 12
registry-url: https://npm.pkg.github.com/
- run: npm publish --access public
- run: npm publish --tag pre --access public
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}