Skip to content

Commit 4aea843

Browse files
committed
fix: use npm keys directly
1 parent 4177170 commit 4aea843

File tree

3 files changed

+24
-9
lines changed

3 files changed

+24
-9
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,19 @@ jobs:
2121
- name: Checkout
2222
uses: actions/checkout@v4
2323

24-
- name: Enable corepack
25-
run: corepack enable
26-
2724
- name: Setup Node.js
2825
uses: actions/setup-node@v4
2926
with:
3027
node-version: ${{ env.node_version }}
3128

29+
- name: Enable corepack
30+
run: corepack enable
31+
32+
# Issue: https://github.com/cypress-io/github-action/issues/1355
33+
- name: Set alternate npm integrity keys
34+
run: |
35+
echo COREPACK_INTEGRITY_KEYS="$(curl https://registry.npmjs.org/-/npm/v1/keys | jq -c '{npm: .keys}')" >> $GITHUB_ENV
36+
3237
- name: Install dependencies
3338
run: npx nypm@latest i
3439

.github/workflows/prerelease.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,19 @@ jobs:
2727
- name: Checkout
2828
uses: actions/checkout@v4
2929

30-
- name: Enable corepack
31-
run: corepack enable
32-
3330
- name: Setup Node.js
3431
uses: actions/setup-node@v4
3532
with:
3633
node-version: ${{ env.node_version }}
3734

35+
- name: Enable corepack
36+
run: corepack enable
37+
38+
# Issue: https://github.com/cypress-io/github-action/issues/1355
39+
- name: Set alternate npm integrity keys
40+
run: |
41+
echo COREPACK_INTEGRITY_KEYS="$(curl https://registry.npmjs.org/-/npm/v1/keys | jq -c '{npm: .keys}')" >> $GITHUB_ENV
42+
3843
- name: Install dependencies
3944
run: npx nypm@latest i
4045

.github/workflows/release.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,19 @@ jobs:
2727
- name: Checkout
2828
uses: actions/checkout@v4
2929

30-
- name: Enable corepack
31-
run: corepack enable
32-
3330
- name: Setup Node.js
3431
uses: actions/setup-node@v4
3532
with:
3633
node-version: ${{ env.node_version }}
3734

35+
- name: Enable corepack
36+
run: corepack enable
37+
38+
# Issue: https://github.com/cypress-io/github-action/issues/1355
39+
- name: Set alternate npm integrity keys
40+
run: |
41+
echo COREPACK_INTEGRITY_KEYS="$(curl https://registry.npmjs.org/-/npm/v1/keys | jq -c '{npm: .keys}')" >> $GITHUB_ENV
42+
3843
- name: Install dependencies
3944
run: npx nypm@latest i
4045

0 commit comments

Comments
 (0)