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
This commit is contained in:
Bilal Qamar
2023-03-29 16:44:29 +05:00
committed by GitHub
parent 26eb2bb4c7
commit aeb0fd2be7
6 changed files with 1201 additions and 20416 deletions

View File

@@ -9,18 +9,17 @@ on:
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
node: [16]
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Nodejs Env
run: echo "NODE_VER=`cat .nvmrc`" >> $GITHUB_ENV
- name: Setup Nodejs
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
node-version: ${{ env.NODE_VER }}
- name: Install dependencies
run: npm ci
- name: Validate package-lock.json changes

View File

@@ -10,5 +10,4 @@ on:
jobs:
version-check:
uses: openedx/.github/.github/workflows/lockfileversion-check.yml@master
uses: openedx/.github/.github/workflows/lockfileversion-check-v3.yml@master

View File

@@ -12,10 +12,12 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Nodejs Env
run: echo "NODE_VER=`cat .nvmrc`" >> $GITHUB_ENV
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16
node-version: ${{ env.NODE_VER }}
- name: Install dependencies
run: npm ci
- name: Validate package-lock.json changes
@@ -33,7 +35,7 @@ jobs:
- name: Release
uses: cycjimmy/semantic-release-action@v2
with:
semantic_version: 16
semantic_version: 20
env:
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.SEMANTIC_RELEASE_NPM_TOKEN }}

1
.nvmrc Normal file
View File

@@ -0,0 +1 @@
18

21595
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -35,8 +35,7 @@
"devDependencies": {
"@edx/brand": "npm:@edx/brand-openedx@1.2.0",
"@edx/browserslist-config": "^1.1.1",
"@edx/frontend-build": "^12.4.19",
"@edx/frontend-platform": "^3.0.1",
"@edx/frontend-build": "12.7.0",
"@edx/reactifex": "^2.1.1",
"@testing-library/dom": "9.0.1",
"@testing-library/jest-dom": "5.16.5",
@@ -56,6 +55,7 @@
"redux-saga": "1.2.3"
},
"dependencies": {
"@edx/frontend-platform": "^4.0.1",
"@edx/paragon": "20.28.5",
"@fortawesome/fontawesome-svg-core": "6.3.0",
"@fortawesome/free-brands-svg-icons": "6.3.0",
@@ -67,7 +67,6 @@
"react-transition-group": "4.4.5"
},
"peerDependencies": {
"@edx/frontend-platform": "^2.0.0 || ^3.0.0",
"prop-types": "^15.5.10",
"react": "^16.9.0",
"react-dom": "^16.9.0"