Skip to content

Commit f628e14

Browse files
authored
ci(corepack): pinned the expected dev version of npm and explicitly used it for audit signatures (#796)
1 parent 97e368d commit f628e14

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ jobs:
2323
with:
2424
cache: npm
2525
node-version: lts/*
26-
- run: npm ci
26+
- run: npm clean-install
27+
- run: corepack npm audit signatures
2728
- run: npx semantic-release
2829
env:
2930
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
node-version: "${{ matrix.node-version }}"
3434
cache: npm
3535
- run: npm clean-install
36-
- run: npm audit signatures
36+
- run: corepack npm audit signatures
3737
- run: npm test
3838

3939
# verify against the node version defined for development in the .nvmrc
@@ -51,7 +51,7 @@ jobs:
5151
node-version-file: .nvmrc
5252
cache: npm
5353
- run: npm clean-install
54-
- run: npm audit signatures
54+
- run: corepack npm audit signatures
5555
- run: npm test
5656

5757
# separate job to set as required in branch protection,

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,5 +126,6 @@
126126
"extends": [
127127
"github>semantic-release/.github:renovate-config"
128128
]
129-
}
129+
},
130+
"packageManager": "[email protected]+sha256.17ca6e08e7633b624e8f870db81a78f46afe119de62bcaf0a7407574139198fc"
130131
}

0 commit comments

Comments
 (0)