change npm-publish.yml

This commit is contained in:
lucaspalomodevelop 2022-11-23 20:00:12 +01:00
parent 4dcd9ff32f
commit 1275514b3f

View File

@ -4,6 +4,9 @@
name: Node.js Package
on:
# push:
# tags:
# - "*"
release:
types: [created]
@ -15,7 +18,7 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm ci
# - run: npm ci
- run: npm test
publish-npm:
@ -27,7 +30,7 @@ jobs:
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- run: npm ci
# - run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}