Skip to content

Commit ff36982

Browse files
authored
chore: fix CI (#111)
1 parent 7f27a2f commit ff36982

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

.github/workflows/format-if-needed.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,11 @@ jobs:
1818
runs-on: ubuntu-latest
1919
steps:
2020
- uses: actions/checkout@v4
21+
- uses: pnpm/action-setup@v4
2122
- uses: actions/setup-node@v4
2223
with:
24+
cache: 'pnpm'
2325
node-version: lts/*
24-
- run: corepack enable && pnpm --version
2526
- run: pnpm install --ignore-scripts
2627
- run: pnpm format
2728
- run: git restore .github/workflows CHANGELOG.md

.github/workflows/main.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@ jobs:
2222
name: Lint & Build
2323
steps:
2424
- uses: actions/checkout@v4
25+
- uses: pnpm/action-setup@v4
2526
- uses: actions/setup-node@v4
2627
with:
28+
cache: pnpm
2729
node-version: lts/*
28-
- run: corepack enable && pnpm --version
2930
- run: pnpm install
3031
- run: pnpm type-check
3132
- run: pnpm lint
@@ -44,9 +45,10 @@ jobs:
4445
node-version: current
4546
steps:
4647
- uses: actions/checkout@v4
48+
- uses: pnpm/action-setup@v4
4749
- uses: actions/setup-node@v4
4850
with:
51+
cache: pnpm
4952
node-version: ${{ matrix.node-version }}
50-
- run: corepack enable && pnpm --version
5153
- run: pnpm install
5254
- run: pnpm test

.github/workflows/release-please.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ jobs:
3131
# Publish to NPM on new releases
3232
- uses: actions/checkout@v4
3333
if: ${{ steps.release.outputs.releases_created }}
34-
- uses: pnpm/action-setup@v2
34+
- uses: pnpm/action-setup@v4
3535
if: ${{ steps.release.outputs.releases_created }}
3636
- uses: actions/setup-node@v4
3737
if: ${{ steps.release.outputs.releases_created }}
3838
with:
3939
cache: pnpm
4040
node-version: lts/*
4141
registry-url: 'https://registry.npmjs.org'
42-
- run: corepack enable && pnpm --version && pnpm install --ignore-scripts
42+
- run: pnpm install --ignore-scripts
4343
if: ${{ steps.release.outputs.releases_created }}
4444
- name: Set publishing config
4545
run: pnpm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}"

0 commit comments

Comments
 (0)