Update npm-publish.yml

This commit is contained in:
Sambo Chea 2022-05-17 09:31:55 +07:00 committed by GitHub
parent 40bcbbf5ea
commit da5660004e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,8 +15,7 @@ jobs:
- uses: actions/setup-node@v3 - uses: actions/setup-node@v3
with: with:
node-version: 16 node-version: 16
- run: npm ci - run: yarn build
- run: npm test
publish-npm: publish-npm:
needs: build needs: build
@ -27,7 +26,6 @@ jobs:
with: with:
node-version: 16 node-version: 16
registry-url: https://registry.npmjs.org/ registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm publish - run: npm publish
env: env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}