Skip to content

Commit bd77ca6

Browse files
fix(ci): disabling postinstall scripts for third-party dependencies (#288)
1 parent 8afe41f commit bd77ca6

File tree

5 files changed

+11
-2
lines changed

5 files changed

+11
-2
lines changed

.github/workflows/linter.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
cache: "yarn"
2727

2828
- name: Install dependencies
29-
run: yarn install --immutable --check-cache --check-resolutions || true
29+
run: yarn install --immutable --check-cache --check-resolutions
3030

3131
- name: Check yarn dedupe
3232
run: yarn dedupe --check

.github/workflows/tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
- name: Install dependencies
4848
env:
4949
YARN_ENABLE_HARDENED_MODE: false
50-
run: yarn install --immutable || true
50+
run: yarn install --immutable
5151

5252
- name: Build WASM
5353
run: yarn grammar:wasm

.yarnrc.yml

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
nodeLinker: node-modules
2+
enableScripts: false

package.json

+5
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,11 @@
426426
"optional": true
427427
}
428428
},
429+
"dependenciesMeta": {
430+
"tree-sitter-cli": {
431+
"built": true
432+
}
433+
},
429434
"packageManager": "yarn@4.6.0",
430435
"prettier": {
431436
"arrowParens": "avoid",

yarn.lock

+3
Original file line numberDiff line numberDiff line change
@@ -6895,6 +6895,9 @@ __metadata:
68956895
webpack-cli: "npm:^5.1.4"
68966896
peerDependencies:
68976897
tree-sitter: ^0.21.1
6898+
dependenciesMeta:
6899+
tree-sitter-cli:
6900+
built: true
68986901
peerDependenciesMeta:
68996902
tree-sitter:
69006903
optional: true

0 commit comments

Comments
 (0)