From 9f3af7631cf67d8f96ea69c5c5a853f1c620e35c Mon Sep 17 00:00:00 2001 From: Nico385412 Date: Fri, 15 Sep 2023 15:03:04 +0200 Subject: [PATCH] feat(runner): use node20 by default --- .github/workflows/check-dist.yml | 4 ++-- .github/workflows/ci.yml | 2 +- README.md | 9 ++++++++- action.yml | 2 +- 4 files changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/check-dist.yml b/.github/workflows/check-dist.yml index c3f5304..04754d1 100644 --- a/.github/workflows/check-dist.yml +++ b/.github/workflows/check-dist.yml @@ -20,10 +20,10 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Set Node.js 16.x + - name: Set Node.js 20.x uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: 20.x cache: npm - name: Install dependencies diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8d17ab0..156459b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 20 cache: npm - run: npm ci - run: npm run style:check diff --git a/README.md b/README.md index 29e2945..27d8e4a 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,13 @@ documentation. ## Breaking Changes +### Breaking changes in V7 + +Version 7 of this action updated the runtime to Node 20 - https://github.com/github/docs/issues/28156 + +All scripts are now run with Node 20 instead of Node 16 and are affected by any breaking changes between Node 16 and 20. + + ### Breaking changes in V6 Version 6 of this action updated the runtime to Node 16 - https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#example-using-nodejs-v16 @@ -377,7 +384,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 20 - run: npm ci # or one-off: - run: npm install execa diff --git a/action.yml b/action.yml index 39615fd..c877b03 100644 --- a/action.yml +++ b/action.yml @@ -36,5 +36,5 @@ outputs: result: description: The return value of the script, stringified with `JSON.stringify` runs: - using: node16 + using: node20 main: dist/index.js