Skip to content

Commit

Permalink
feat: Migrate workflow to PNPM
Browse files Browse the repository at this point in the history
  • Loading branch information
GabsEdits authored Apr 23, 2024
1 parent ddcab96 commit e32abc5
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm ci
- uses: pnpm/action-setup@v3
with:
version: latest
- run: pnpm install

publish-npm:
needs: build
Expand All @@ -24,8 +27,11 @@ jobs:
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- run: npm ci
- uses: pnpm/action-setup@v3
with:
version: latest
- run: pnpm install
- run: npm version patch
- run: npm publish
- run: pnpm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 comments on commit e32abc5

Please sign in to comment.