Skip to content

Commit 5d50e59

Browse files
authored
feat: upgraded to node v18, added .nvmrc and updated workflows (#274)
* feat: upgraded to node v18, added .nvmrc and updated workflows * refactor: upgraded frontend-build & frontend-platform
1 parent c715f0c commit 5d50e59

File tree

6 files changed

+1031
-19438
lines changed

6 files changed

+1031
-19438
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,17 @@ on:
99
jobs:
1010
tests:
1111
runs-on: ubuntu-latest
12-
strategy:
13-
matrix:
14-
node: [16]
1512
steps:
1613
- name: Checkout
1714
uses: actions/checkout@v3
1815
with:
1916
fetch-depth: 0
17+
- name: Setup Nodejs Env
18+
run: echo "NODE_VER=`cat .nvmrc`" >> $GITHUB_ENV
2019
- name: Setup Nodejs
2120
uses: actions/setup-node@v3
2221
with:
23-
node-version: ${{ matrix.node }}
22+
node-version: ${{ env.NODE_VER }}
2423
- name: Install dependencies
2524
run: npm ci
2625
- name: Validate package-lock.json changes

.github/workflows/lockfileversion-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ on:
1010

1111
jobs:
1212
version-check:
13-
uses: openedx/.github/.github/workflows/lockfileversion-check.yml@master
13+
uses: openedx/.github/.github/workflows/lockfileversion-check-v3.yml@master

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@ jobs:
1212
uses: actions/checkout@v3
1313
with:
1414
fetch-depth: 0
15+
- name: Setup Nodejs Env
16+
run: echo "NODE_VER=`cat .nvmrc`" >> $GITHUB_ENV
1517
- name: Setup Node.js
1618
uses: actions/setup-node@v3
1719
with:
18-
node-version: 16
20+
node-version: ${{ env.NODE_VER }}
1921
- name: Install dependencies
2022
run: npm ci
2123
- name: Validate package-lock.json changes

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
18

0 commit comments

Comments
 (0)