Skip to content

Commit

Permalink
other way
Browse files Browse the repository at this point in the history
  • Loading branch information
felipecesr committed Sep 26, 2024
1 parent 21f779d commit 251e1c6
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,16 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v4
with:
always-auth: true
node-version: '20.x'
registry-url: registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}
scope: '@felipecesr'
cache: 'yarn'
- run: yarn --frozen-lockfile
- run: yarn release
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Install dependencies
run: yarn --frozen-lockfile

- name: Setup npm auth
run: |
echo "registry=https://registry.npmjs.org" >> ~/.npmrc
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> ~/.npmrc
- name: Publish
run: yarn release

0 comments on commit 251e1c6

Please sign in to comment.