Skip to content

Commit

Permalink
Merge pull request #244 from relative-ci/bump-node
Browse files Browse the repository at this point in the history
build: Build and run on node 20
  • Loading branch information
vio authored Oct 11, 2023
2 parents dbbeecd + e60dfa2 commit 86e287a
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '16.x'
node-version-file: ".nvmrc"
cache: 'npm'
- run: npm ci
- run: npm run build
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v16
v20
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ inputs:
description: 'Artifact bundle stats file path'
required: false
runs:
using: 'node16'
using: 'node20'
main: 'dist/index.js'
4 changes: 2 additions & 2 deletions node_modules/.package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
},
"homepage": "https://relative-ci.com/documentation/setup",
"scripts": {
"add-files": "npm install && npm run build && rm -fr node_modules && npm install --omit=dev && git add -f node_modules dist",
"lint": "eslint .",
"build": "webpack --mode production"
},
Expand Down

0 comments on commit 86e287a

Please sign in to comment.