Skip to content

Commit ad4be33

Browse files
committed
use the lockfile inside ci workflow
1 parent 9e7b42c commit ad4be33

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
with:
5050
node-version: 24
5151
- name: Install dependencies
52-
run: yarn install --ignore-scripts
52+
run: yarn install --frozen-lockfile --ignore-scripts
5353
- name: Run lint
5454
run: yarn lint
5555

@@ -116,7 +116,7 @@ jobs:
116116
msbuild-architecture: ${{ matrix.target }}
117117

118118
- name: Install dependencies
119-
run: yarn install --ignore-scripts
119+
run: yarn install --frozen-lockfile --ignore-scripts
120120

121121
- name: Check Node compatibility
122122
run: node tools/semver-check.js
@@ -203,7 +203,7 @@ jobs:
203203
retention-days: 7
204204

205205
- name: Upload binaries to GitHub Release
206-
run: yarn install --ignore-scripts && yarn upload --upload-all ${{ github.token }}
206+
run: yarn install --frozen-lockfile --ignore-scripts && yarn upload --upload-all ${{ github.token }}
207207
if: startsWith(github.ref, 'refs/tags/')
208208

209209
publish-npm:
@@ -221,7 +221,7 @@ jobs:
221221
registry-url: https://registry.npmjs.org
222222

223223
- name: Install dependencies
224-
run: yarn install --ignore-scripts
224+
run: yarn install --frozen-lockfile --ignore-scripts
225225

226226
- name: Publish to npm
227227
run: npm publish

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
"prebuild": "prebuild --runtime napi --all --verbose",
7575
"rebuild": "node-gyp rebuild",
7676
"upload": "prebuild --verbose --prerelease",
77+
"frozen-install": "yarn install --frozen-lockfile",
7778
"lint": "eslint lib/ test/ tools/",
7879
"test": "node test/support/createdb.js && mocha -R spec --timeout 480000"
7980
},

0 commit comments

Comments
 (0)