Skip to content

Commit 037d50d

Browse files
committed
Fix CI: upgrade to Node 20 and pin dependencies with package-lock.json
1 parent 2aef1f9 commit 037d50d

4 files changed

Lines changed: 26409 additions & 13 deletions

File tree

.github/workflows/cd.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,12 @@ jobs:
1212
- name: Install libvips
1313
run: sudo apt-get install libvips
1414
- uses: actions/checkout@v2
15-
- name: Setup Node 18
15+
- name: Setup Node 20
1616
uses: actions/setup-node@v2
1717
with:
18-
node-version: '18'
18+
node-version: '20'
1919
- name: Install dependencies
20-
run: |
21-
npm i --force --unsafe-perm
20+
run: npm ci --unsafe-perm
2221
- name: Force installing sharp
2322
run: npm install --ignore-scripts=false --verbose sharp@0.30.7 --force --unsafe-perm
2423
- name: 'Create env file'

.github/workflows/ci.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,12 @@ jobs:
1111
- name: Install libvips
1212
run: sudo apt-get install libvips
1313
- uses: actions/checkout@v2
14-
- name: Setup Node 18
14+
- name: Setup Node 20
1515
uses: actions/setup-node@v2
1616
with:
17-
node-version: '18'
17+
node-version: '20'
1818
- name: Install dependencies
19-
run: |
20-
rm -rf node_modules && npm i --force --unsafe-perm
19+
run: npm ci --unsafe-perm
2120
- name: Force installing sharp
2221
run: npm install --ignore-scripts=false --verbose sharp@0.30.7 --force --unsafe-perm
2322
- name: 'Create env file'

.github/workflows/staging-cd.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,12 @@ jobs:
1212
- name: Install libvips
1313
run: sudo apt-get install libvips
1414
- uses: actions/checkout@v2
15-
- name: Setup Node 18
15+
- name: Setup Node 20
1616
uses: actions/setup-node@v2
1717
with:
18-
node-version: '18'
18+
node-version: '20'
1919
- name: Install dependencies
20-
run: |
21-
rm -rf .cache node_modules
22-
npm i --force --unsafe-perm
20+
run: npm ci --unsafe-perm
2321
- name: Force installing sharp
2422
run: npm install --ignore-scripts=false --verbose sharp@0.30.7 --force --unsafe-perm
2523
- name: 'Create env file'

0 commit comments

Comments
 (0)