Skip to content

Commit

Permalink
fix(action): release process npm to pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
kyechan99 committed Mar 11, 2024
1 parent 3e5ca15 commit 55cb90c
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,14 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
- run: npm ci
- run: npm test
node-version: '20.x'
- name: Install pnpm
run: |
npm install -g pnpm
- name: Install Packages
run: pnpm install
- run: pnpm testOnce

publish-gpr:
needs: build
Expand All @@ -25,9 +30,13 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
node-version: '20.x'
registry-url: https://npm.pkg.github.com/
- run: npm ci
- run: npm publish
- name: Install pnpm
run: |
npm install -g pnpm
- name: Install Packages
run: pnpm install
- run: pnpm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit 55cb90c

Please sign in to comment.