Skip to content

Commit

Permalink
use yarn for publish
Browse files Browse the repository at this point in the history
  • Loading branch information
jlandfried committed Mar 27, 2023
1 parent 5a61f4c commit ab0aa6b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# This workflow will run tests using node and then publish a package to NPM when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages

name: Node.js Package

on:
Expand All @@ -15,7 +12,7 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm ci
- run: yarn install --frozen-lockfile
- run: npm test

publish-npm:
Expand All @@ -27,7 +24,7 @@ jobs:
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: yarn install --frozen-lockfile
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 comments on commit ab0aa6b

Please sign in to comment.