Skip to content

Commit 71345be

Browse files
authored
feat: update runtime to node 20 (#306)
1 parent d41bfe3 commit 71345be

File tree

6 files changed

+18
-18
lines changed

6 files changed

+18
-18
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- uses: actions/checkout@v4
2626
- uses: actions/setup-node@v4
2727
with:
28-
node-version: 16.x
28+
node-version: 20.x
2929
cache: npm
3030
- run: npm ci
3131
- run: npm run build

.github/workflows/update-major-version.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ on:
1111
type: choice
1212
description: The major version tag to update
1313
options:
14-
- v2
1514
- v3
15+
- v4
1616

1717
jobs:
1818
tag:

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ A GitHub action to create or update an issue or pull request comment.
1010

1111
```yml
1212
- name: Create comment
13-
uses: peter-evans/create-or-update-comment@v3
13+
uses: peter-evans/create-or-update-comment@v4
1414
with:
1515
issue-number: 1
1616
body: |
@@ -26,7 +26,7 @@ A GitHub action to create or update an issue or pull request comment.
2626
2727
```yml
2828
- name: Update comment
29-
uses: peter-evans/create-or-update-comment@v3
29+
uses: peter-evans/create-or-update-comment@v4
3030
with:
3131
comment-id: 557858210
3232
body: |
@@ -38,7 +38,7 @@ A GitHub action to create or update an issue or pull request comment.
3838
3939
```yml
4040
- name: Add reactions
41-
uses: peter-evans/create-or-update-comment@v3
41+
uses: peter-evans/create-or-update-comment@v4
4242
with:
4343
comment-id: 557858210
4444
reactions: |
@@ -73,7 +73,7 @@ Note that in order to read the step output the action step must have an id.
7373

7474
```yml
7575
- name: Create comment
76-
uses: peter-evans/create-or-update-comment@v3
76+
uses: peter-evans/create-or-update-comment@v4
7777
id: couc
7878
with:
7979
issue-number: 1
@@ -98,7 +98,7 @@ jobs:
9898
runs-on: ubuntu-latest
9999
steps:
100100
- name: Add reaction
101-
uses: peter-evans/create-or-update-comment@v3
101+
uses: peter-evans/create-or-update-comment@v4
102102
with:
103103
comment-id: ${{ github.event.comment.id }}
104104
reactions: eyes
@@ -113,15 +113,15 @@ If the find-comment action output `comment-id` returns an empty string, a new co
113113
If it returns a value, the comment already exists and the content is replaced.
114114
```yml
115115
- name: Find Comment
116-
uses: peter-evans/find-comment@v2
116+
uses: peter-evans/find-comment@v3
117117
id: fc
118118
with:
119119
issue-number: ${{ github.event.pull_request.number }}
120120
comment-author: 'github-actions[bot]'
121121
body-includes: Build output
122122
123123
- name: Create or update comment
124-
uses: peter-evans/create-or-update-comment@v3
124+
uses: peter-evans/create-or-update-comment@v4
125125
with:
126126
comment-id: ${{ steps.fc.outputs.comment-id }}
127127
issue-number: ${{ github.event.pull_request.number }}
@@ -134,7 +134,7 @@ If it returns a value, the comment already exists and the content is replaced.
134134
If required, the create and update steps can be separated for greater control.
135135
```yml
136136
- name: Find Comment
137-
uses: peter-evans/find-comment@v2
137+
uses: peter-evans/find-comment@v3
138138
id: fc
139139
with:
140140
issue-number: ${{ github.event.pull_request.number }}
@@ -143,7 +143,7 @@ If required, the create and update steps can be separated for greater control.
143143
144144
- name: Create comment
145145
if: steps.fc.outputs.comment-id == ''
146-
uses: peter-evans/create-or-update-comment@v3
146+
uses: peter-evans/create-or-update-comment@v4
147147
with:
148148
issue-number: ${{ github.event.pull_request.number }}
149149
body: |
@@ -152,7 +152,7 @@ If required, the create and update steps can be separated for greater control.
152152
153153
- name: Update comment
154154
if: steps.fc.outputs.comment-id != ''
155-
uses: peter-evans/create-or-update-comment@v3
155+
uses: peter-evans/create-or-update-comment@v4
156156
with:
157157
comment-id: ${{ steps.fc.outputs.comment-id }}
158158
body: |
@@ -164,7 +164,7 @@ If required, the create and update steps can be separated for greater control.
164164

165165
```yml
166166
- name: Create comment
167-
uses: peter-evans/create-or-update-comment@v3
167+
uses: peter-evans/create-or-update-comment@v4
168168
with:
169169
issue-number: 1
170170
body-path: 'comment-body.md'
@@ -190,7 +190,7 @@ The template is rendered using the [render-template](https://github.com/chuhlomi
190190
bar: that
191191
192192
- name: Create comment
193-
uses: peter-evans/create-or-update-comment@v3
193+
uses: peter-evans/create-or-update-comment@v4
194194
with:
195195
issue-number: 1
196196
body: ${{ steps.template.outputs.result }}

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ outputs:
3232
comment-id:
3333
description: 'The id of the created comment'
3434
runs:
35-
using: 'node16'
35+
using: 'node20'
3636
main: 'dist/index.js'
3737
branding:
3838
icon: 'message-square'

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "create-or-update-comment",
3-
"version": "3.0.0",
3+
"version": "4.0.0",
44
"description": "Create or update an issue or pull request comment",
55
"main": "lib/main.js",
66
"scripts": {

0 commit comments

Comments
 (0)