Skip to content

Commit e8d2171

Browse files
committed
ci: update pnpm settings
1 parent 236f1a2 commit e8d2171

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.github/workflows/publish.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,21 @@ jobs:
2222
fetch-depth: 0 # Important for changelog
2323
filter: blob:none # We don't need all blobs
2424

25-
- run: corepack enable
25+
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
26+
with:
27+
standalone: true
28+
2629
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
2730
with:
2831
node-version-file: .node-version
2932
registry-url: https://registry.npmjs.org/
33+
cache: 'pnpm'
34+
3035
- run: pnpm install
3136

3237
- run: echo VERSION=${GITHUB_REF_NAME#v} >> $GITHUB_ENV
3338
- run: pnpm version ${VERSION}
39+
3440
- name: Generate changelog with git-cliff
3541
uses: tj-actions/git-cliff@75599f745633e29f99bd9e14a30865b7d2fcbe84 # v1.5.0
3642
with:
@@ -40,6 +46,7 @@ jobs:
4046
- run: pnpm publish --access public
4147
env:
4248
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
49+
4350
- uses: ncipollo/release-action@2c591bcc8ecdcd2db72b97d6147f871fcd833ba5 # v1.14.0
4451
with:
4552
bodyFile: 'CHANGELOG.md'

.github/workflows/test.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,14 @@ jobs:
2222
steps:
2323
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2424

25-
- run: corepack enable
25+
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
26+
with:
27+
standalone: true
2628

2729
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
2830
with:
2931
node-version-file: .node-version
32+
cache: 'pnpm'
3033

3134
- run: pnpm install
3235

0 commit comments

Comments
 (0)