Skip to content

Commit d5014c2

Browse files
authored
Merge pull request #622 from preactjs/ci/disable-publish-workflow-cache
ci: harden trusted publish workflow
2 parents fd14ee1 + 89b7087 commit d5014c2

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

.github/workflows/release.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,14 @@ jobs:
1818
pull-requests: write
1919
steps:
2020
- name: Checkout Repo
21-
uses: actions/checkout@v4
21+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
2222
with:
2323
fetch-depth: 0
2424

2525
- name: Setup Node
26-
uses: actions/setup-node@v4
26+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
2727
with:
28+
package-manager-cache: false
2829
node-version: 22
2930
registry-url: 'https://registry.npmjs.org'
3031

@@ -36,7 +37,7 @@ jobs:
3637
run: node .github/scripts/has-unpublished-packages.mjs
3738

3839
- name: Setup pnpm
39-
uses: pnpm/action-setup@v3
40+
uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # v3
4041
with:
4142
version: 11.0.0
4243
run_install: false
@@ -46,7 +47,7 @@ jobs:
4647

4748
- name: Create Release Pull Request
4849
id: changesets
49-
uses: changesets/action@v1.5.3
50+
uses: changesets/action@e0145edc7d9d8679003495b11f87bd8ef63c0cba # v1.5.3
5051
with:
5152
version: pnpm run version
5253
env:
@@ -67,21 +68,22 @@ jobs:
6768
pull-requests: write
6869
steps:
6970
- name: Checkout Repo
70-
uses: actions/checkout@v4
71+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
7172
with:
7273
fetch-depth: 0
7374

7475
- name: Setup Node
75-
uses: actions/setup-node@v4
76+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
7677
with:
78+
package-manager-cache: false
7779
node-version: 22
7880
registry-url: 'https://registry.npmjs.org'
7981

8082
- name: Update npm
8183
run: npm install -g npm@11.11
8284

8385
- name: Setup pnpm
84-
uses: pnpm/action-setup@v3
86+
uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # v3
8587
with:
8688
version: 11.0.0
8789
run_install: false
@@ -90,7 +92,7 @@ jobs:
9092
run: pnpm install --frozen-lockfile false
9193

9294
- name: Publish packages
93-
uses: changesets/action@v1.5.3
95+
uses: changesets/action@e0145edc7d9d8679003495b11f87bd8ef63c0cba # v1.5.3
9496
with:
9597
publish: pnpm changeset publish
9698
env:

0 commit comments

Comments
 (0)