File tree 4 files changed +14
-5
lines changed
4 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 1
1
name : Github Release
2
2
3
3
env :
4
- NODE_VERSION : 22
4
+ NODE_VERSION : 22.14.0
5
5
PNPM_VERSION : 10.7.1
6
+ # Forks do not have access to our vars
7
+ VARS_PNPM : ${{ vars.VARS_PNPM || '--silent --ignore-scripts' }}
6
8
7
9
# Workflow need write access to the repository to create a GitHub release
8
10
permissions :
49
51
cache : pnpm
50
52
51
53
- name : Install dependencies
52
- run : pnpm install
54
+ run : pnpm install ${{ env.VARS_PNPM }}
53
55
54
56
- name : Run ESLint
55
57
run : pnpm lint
Original file line number Diff line number Diff line change 1
1
name : Test Scriptlets
2
2
3
3
env :
4
- NODE_VERSION : 22
4
+ NODE_VERSION : 22.14.0
5
5
PNPM_VERSION : 10.7.1
6
6
7
7
on :
Original file line number Diff line number Diff line change 40
40
# Set cache directory
41
41
pnpm config set store-dir ${bamboo.cachePnpm}
42
42
43
- pnpm install
43
+ pnpm install ${bamboo.varsPnpm}
44
44
45
45
pnpm build
46
46
Original file line number Diff line number Diff line change @@ -35,7 +35,14 @@ Build:
35
35
36
36
ls -laht
37
37
38
- pnpm install
38
+ # Exclude '--ignore-scripts' from pnpm arguments
39
+ # since it prevents postinstall scripts from running
40
+ # so Chrome is not installed which is crucial for tests
41
+ originalPnpmArgs="$bamboo_varsPnpm"
42
+ modifiedPnpmArgs=$(echo "$originalPnpmArgs" | sed 's/--ignore-scripts//g')
43
+
44
+ # Install common dependencies
45
+ pnpm install ${modifiedPnpmArgs}
39
46
40
47
# build docs to lint them later
41
48
# check compatibility table updates and build it and build wiki docs
You can’t perform that action at this time.
0 commit comments