Skip to content

Commit

Permalink
Merge pull request #116 from wataru-chocola/use_pnpm
Browse files Browse the repository at this point in the history
chore: use pnpm
  • Loading branch information
wataru-chocola committed Oct 6, 2023
2 parents d0174c6 + 2ddb94f commit 40f57f2
Show file tree
Hide file tree
Showing 5 changed files with 5,986 additions and 11,140 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@ jobs:

steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
- run: corepack enable pnpm
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run build --if-present
- run: npm test
cache: 'pnpm'
- run: pnpm install
- run: pnpm run --if-present build
- run: pnpm test
14 changes: 8 additions & 6 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,24 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
- run: corepack enable pnpm
- uses: actions/setup-node@v3
with:
node-version: 14
- run: npm ci
- run: npm test
node-version: 20
- run: pnpm install
- run: pnpm test

publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
- run: corepack enable pnpm
- uses: actions/setup-node@v3
with:
node-version: 14
node-version: 20
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm publish
- run: pnpm install
- run: pnpm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
Loading

0 comments on commit 40f57f2

Please sign in to comment.