From 2168376e4e041e25dbe49c4b5ba2bf277ef40ef3 Mon Sep 17 00:00:00 2001 From: Vio Date: Fri, 25 Aug 2023 00:42:40 +0200 Subject: [PATCH 1/2] build: Build and run on node 20 --- .github/workflows/nodejs.yml | 2 +- .nvmrc | 2 +- action.yml | 2 +- node_modules/.package-lock.json | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) 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": { From e60dfa2a68098771b40b5a96129fd64ce8d64668 Mon Sep 17 00:00:00 2001 From: Vio Date: Wed, 11 Oct 2023 18:28:17 +0200 Subject: [PATCH 2/2] build: add-files script --- package.json | 1 + 1 file changed, 1 insertion(+) 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" },