From ff45666b9427631e3450c54a1bcbee4d9ff4d7c0 Mon Sep 17 00:00:00 2001 From: Peter Evans <18365890+peter-evans@users.noreply.github.com> Date: Thu, 25 Jan 2024 20:57:43 +0900 Subject: [PATCH] feat: update runtime to node 20 (#305) --- .github/workflows/ci.yml | 2 +- .github/workflows/update-major-version.yml | 2 +- README.md | 10 +++++----- action.yml | 2 +- package-lock.json | 4 ++-- package.json | 2 +- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1a89cb86..626299be 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,7 +22,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 16.x + node-version: 20.x - run: npm ci - run: npm run build - run: npm run format-check diff --git a/.github/workflows/update-major-version.yml b/.github/workflows/update-major-version.yml index f68c7cd1..6fcdb91c 100644 --- a/.github/workflows/update-major-version.yml +++ b/.github/workflows/update-major-version.yml @@ -11,7 +11,7 @@ on: type: choice description: The major version tag to update options: - - v2 + - v3 jobs: tag: diff --git a/README.md b/README.md index 3dfe3c5c..eb3ab808 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ A GitHub action to create a repository dispatch event. Dispatch an event to the current repository. ```yml - name: Repository Dispatch - uses: peter-evans/repository-dispatch@v2 + uses: peter-evans/repository-dispatch@v3 with: event-type: my-event ``` @@ -17,7 +17,7 @@ Dispatch an event to the current repository. Dispatch an event to a remote repository using a `repo` scoped [Personal Access Token (PAT)](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token). ```yml - name: Repository Dispatch - uses: peter-evans/repository-dispatch@v2 + uses: peter-evans/repository-dispatch@v3 with: token: ${{ secrets.PAT }} repository: username/my-repo @@ -51,7 +51,7 @@ Here is an example setting all of the input parameters. ```yml - name: Repository Dispatch - uses: peter-evans/repository-dispatch@v2 + uses: peter-evans/repository-dispatch@v3 with: token: ${{ secrets.PAT }} repository: username/my-repo @@ -94,7 +94,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Repository Dispatch - uses: peter-evans/repository-dispatch@v2 + uses: peter-evans/repository-dispatch@v3 with: token: ${{ secrets.PAT }} repository: ${{ matrix.repo }} @@ -131,7 +131,7 @@ A multiline `client-payload` can be set directly in YAML, as in the following ex ```yml - name: Repository Dispatch - uses: peter-evans/repository-dispatch@v2 + uses: peter-evans/repository-dispatch@v3 with: token: ${{ secrets.PAT }} repository: username/my-repo diff --git a/action.yml b/action.yml index a68a0863..22908c64 100644 --- a/action.yml +++ b/action.yml @@ -14,7 +14,7 @@ inputs: description: 'JSON payload with extra information about the webhook event that your action or worklow may use.' default: '{}' runs: - using: 'node16' + using: 'node20' main: 'dist/index.js' branding: icon: 'target' diff --git a/package-lock.json b/package-lock.json index 9602c703..eea8e236 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "repository-dispatch", - "version": "2.0.0", + "version": "3.0.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "repository-dispatch", - "version": "2.0.0", + "version": "3.0.0", "license": "MIT", "dependencies": { "@actions/core": "^1.10.1", diff --git a/package.json b/package.json index db8a40c1..f4d0550d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "repository-dispatch", - "version": "2.0.0", + "version": "3.0.0", "private": true, "description": "Create a repository dispatch event", "main": "lib/main.js",