Skip to content

Commit

Permalink
Use Yarn to publish package
Browse files Browse the repository at this point in the history
  • Loading branch information
j0k3r authored Oct 4, 2022
1 parent 311ff53 commit 9e53df3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm ci
- run: npm test
cache: 'yarn'
- run: yarn install
- run: yarn test

publish-npm:
needs: build
Expand All @@ -27,7 +28,8 @@ jobs:
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm publish
- run: yarn install
- run: yarn build
- run: yarn publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 comments on commit 9e53df3

Please sign in to comment.