Skip to content

Commit

Permalink
Use yarn not npm in release action
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjg committed Sep 27, 2023
1 parent 132daaa commit 3b0b37d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ jobs:
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v3
with:
node-version: '20.x'
node-version: 20.x'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm publish
# Defaults to the user or organization that owns the workflow file
scope: '@octocat'
- run: yarn
- run: yarn npm publish // for Yarn version 1, use `yarn publish` instead
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 3b0b37d

Please sign in to comment.