Skip to content

Commit

Permalink
ci(workflow): update release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Snazzah committed Jul 15, 2024
1 parent b42c138 commit 23df307
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,11 @@ jobs:
with:
node-version: 18.x
cache: 'pnpm'
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Setup .npmrc
run: echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" > .npmrc

- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand All @@ -106,16 +104,15 @@ jobs:
with:
node-version: 18.x
cache: 'pnpm'
registry-url: 'https://npm.pkg.github.com'
scope: '@snazzah'

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Build Package
run: pnpm run build && pnpm run gpr

- name: Setup .npmrc
run: echo "//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}" > .npmrc

- run: pnpm publish --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 23df307

Please sign in to comment.