Skip to content

Commit

Permalink
chore: use pnpm (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
SukkaW authored Oct 10, 2024
1 parent 3d20461 commit 05b0b90
Show file tree
Hide file tree
Showing 10 changed files with 4,551 additions and 6,778 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,23 @@ jobs:
contents: read
id-token: write
steps:
- uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 20
node-version-file: '.node-version'
check-latest: true
cache: 'npm'
cache: 'pnpm'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm install -g npm && npm install
- run: npm install -g npm && pnpm install
- name: Publish
run: |
if git log -1 --pretty=%B | grep "^release: [0-9]\+\.[0-9]\+\.[0-9]\+$";
then
npm publish --provenance --access public
pnpm publish --provenance --access public
elif git log -1 --pretty=%B | grep "^release: [0-9]\+\.[0-9]\+\.[0-9]\+";
then
npm publish --tag next --provenance --access public
pnpm publish --tag next --provenance --access public
else
echo "Not a release, skipping publish"
fi
Expand Down
23 changes: 10 additions & 13 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,20 @@ jobs:
name: Lint & Test
strategy:
matrix:
node-version: [16, 18, 20, 22]
node-version: [18, 20, 22]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- name: Setup node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
check-latest: true
cache: 'npm'
cache: 'pnpm'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm install
- name: Lint
if: matrix.node-version == 22
run: npm run lint
- name: Test
run: npm run test
- name: Build
run: npm run build
- run: pnpm install
- if: matrix.node-version == 22
run: pnpm run lint
- run: pnpm run test
- run: pnpm run build
Loading

0 comments on commit 05b0b90

Please sign in to comment.