Skip to content

Commit 369fbcc

Browse files
authored
update verify node script and run npm install with node lts (#237)
* update verify node script and run npm install with node lts * update command * rollback jsdoc and updatge GH actions node version
1 parent 25fba24 commit 369fbcc

8 files changed

+53
-39
lines changed

.github/workflows/run-diffend.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
node: ["16.17.0"]
14+
node: ["18.13.0"]
1515
steps:
1616
- name: Check out code
1717
uses: actions/checkout@v3

.github/workflows/run-lint.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
node: ["16.17.0"]
14+
node: ["18.13.0"]
1515
steps:
1616
- name: Check out code
1717
uses: actions/checkout@v2

.github/workflows/run-tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
node: ["16.17.0"]
14+
node: ["18.13.0"]
1515
steps:
1616
- name: Check out code
1717
uses: actions/checkout@v2

.github/workflows/spell-check.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616

1717
strategy:
1818
matrix:
19-
node: ["16.17.0"]
19+
node: ["18.13.0"]
2020

2121
steps:
2222
- uses: actions/checkout@v3

.nvmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v18.13.0

package-lock.json

+45-33
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"types": "lib/types/constructorio.d.ts",
77
"scripts": {
88
"clean": "sudo rm -rf node_modules package-lock.json",
9-
"version": "chmod +x ./scripts/verify-node-version.sh && ./scripts/verify-node-version.sh && npm run docs && git add ./docs/* && npm run bundle && git add -A ./dist",
9+
"verify-node-version": "chmod +x ./scripts/verify-node-version.sh && ./scripts/verify-node-version.sh",
10+
"version": "npm run verify-node-version && npm run docs && git add ./docs/* && npm run bundle && git add -A ./dist",
1011
"check-lisc": "license-checker --production --onlyAllow 'Apache-2.0;BSD-3-Clause;MIT'",
1112
"lint": "eslint 'src/**/*.js' 'spec/**/*.js' 'src/**/*.d.ts'",
1213
"test": "npm run compile && mkdir -p test && cp -rf lib/* test && mocha ./spec/*",

scripts/verify-node-version.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
version=$(node -pe process.release.lts)
2-
activeLTSCodename="Gallium"
2+
activeLTSCodename="Hydrogen"
33

44
if [ $version != $activeLTSCodename ]
55
then

0 commit comments

Comments
 (0)