Skip to content

Commit

Permalink
ci: add npm to publish to npmjs registry
Browse files Browse the repository at this point in the history
  • Loading branch information
diecodev committed May 8, 2024
1 parent 1248ce1 commit b04ff81
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,16 @@ jobs:
with:
version: 9

- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"

- name: Building library
run: pnpm install --no-frozen-lockfile && pnpm run build
run: pnpm install --no-frozen-lockfile

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

Expand Down

0 comments on commit b04ff81

Please sign in to comment.