diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index e0f4b23cb..e56005b8f 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -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 diff --git a/.nvmrc b/.nvmrc index 6f7f377bf..9a2a0e219 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -v16 +v20 diff --git a/action.yml b/action.yml index cef634033..1515aa085 100644 --- a/action.yml +++ b/action.yml @@ -34,5 +34,5 @@ inputs: description: 'Artifact bundle stats file path' required: false runs: - using: 'node16' + using: 'node20' main: 'dist/index.js' diff --git a/node_modules/.package-lock.json b/node_modules/.package-lock.json index bdc189e70..89e4b8597 100644 --- a/node_modules/.package-lock.json +++ b/node_modules/.package-lock.json @@ -1,7 +1,7 @@ { "name": "@relative-ci/agent-action", - "version": "2.1.6", - "lockfileVersion": 2, + "version": "2.1.8", + "lockfileVersion": 3, "requires": true, "packages": { "node_modules/@actions/core": { diff --git a/package.json b/package.json index 08c2287de..26b6e1fcf 100644 --- a/package.json +++ b/package.json @@ -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" },