From 835a3e3ee733923711f9c54beeb0ef19b63cc5d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luka=20Sch=C3=A4fer?= Date: Wed, 24 Jan 2024 20:33:04 +0100 Subject: [PATCH 1/4] Add missing step to contributing guidelines --- .github/CONTRIBUTING.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index df09904..bdce6ec 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -53,6 +53,7 @@ $ npm test Create a release before you push your changes. ```bash +$ npm run build $ npm run release ``` @@ -60,4 +61,4 @@ $ npm run release Please submit the issue using the appropriate template provided for a bug report or a feature request: -* [Issues](https://github.com/shivammathur/cache-extensions/issues) \ No newline at end of file +* [Issues](https://github.com/shivammathur/cache-extensions/issues) From 63ea78860c4c4fddda874cde00ae21100b9501f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luka=20Sch=C3=A4fer?= Date: Wed, 24 Jan 2024 21:09:26 +0100 Subject: [PATCH 2/4] Use Node 20 --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 29effd4..2b91f00 100644 --- a/action.yml +++ b/action.yml @@ -18,5 +18,5 @@ inputs: description: 'Key to version the cache hash.' required: true runs: - using: 'node16' + using: 'node20' main: 'dist/index.js' From 4c9e954c7ec1db6ad3a05388b0a5f9f7ebd4ee14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luka=20Sch=C3=A4fer?= Date: Wed, 24 Jan 2024 21:06:27 +0100 Subject: [PATCH 3/4] Use Node 20 in workflows --- .github/workflows/node-release.yml | 2 +- .github/workflows/node-test.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/node-release.yml b/.github/workflows/node-release.yml index e22ab4e..f69d842 100644 --- a/.github/workflows/node-release.yml +++ b/.github/workflows/node-release.yml @@ -30,7 +30,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v3 with: - node-version: '16.x' + node-version: '20.x' registry-url: https://registry.npmjs.org - name: Install dependencies and add lib diff --git a/.github/workflows/node-test.yml b/.github/workflows/node-test.yml index abc9222..adad669 100644 --- a/.github/workflows/node-test.yml +++ b/.github/workflows/node-test.yml @@ -14,10 +14,10 @@ jobs: with: fetch-depth: 2 - - name: Setup Node.js 16.x + - name: Setup Node.js 20.x uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: 20.x - name: Install dependencies run: npm install From ffdf43cfd9ea7ab6f0cd83a7708316ab8a215b8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luka=20Sch=C3=A4fer?= Date: Wed, 24 Jan 2024 21:06:47 +0100 Subject: [PATCH 4/4] Use actions/setup-node v4 --- .github/workflows/node-release.yml | 4 ++-- .github/workflows/node-test.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/node-release.yml b/.github/workflows/node-release.yml index f69d842..44f453b 100644 --- a/.github/workflows/node-release.yml +++ b/.github/workflows/node-release.yml @@ -28,7 +28,7 @@ jobs: ref: ${{ github.event.inputs.tag }} - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: '20.x' registry-url: https://registry.npmjs.org @@ -46,7 +46,7 @@ jobs: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Change to GitHub Packages registry - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: registry-url: https://npm.pkg.github.com scope: '@shivammathur' diff --git a/.github/workflows/node-test.yml b/.github/workflows/node-test.yml index adad669..fbac2ee 100644 --- a/.github/workflows/node-test.yml +++ b/.github/workflows/node-test.yml @@ -15,7 +15,7 @@ jobs: fetch-depth: 2 - name: Setup Node.js 20.x - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 20.x