Skip to content

Commit aeb0fd2

Browse files
authored
feat: upgraded to node v18, added .nvmrc and updated workflows (#314)
* feat: upgraded to node v18, added .nvmrc and updated workflows * refactor: upgraded frontend-build & frontend-platform, updated workflows * refactor: moved platform from devDependencies
1 parent 26eb2bb commit aeb0fd2

File tree

6 files changed

+1210
-20425
lines changed

6 files changed

+1210
-20425
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 & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,4 @@ on:
1010

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

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
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
@@ -33,7 +35,7 @@ jobs:
3335
- name: Release
3436
uses: cycjimmy/semantic-release-action@v2
3537
with:
36-
semantic_version: 16
38+
semantic_version: 20
3739
env:
3840
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GITHUB_TOKEN }}
3941
NPM_TOKEN: ${{ secrets.SEMANTIC_RELEASE_NPM_TOKEN }}

.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)