Skip to content

Commit 24452a7

Browse files
authored
Update runtime to node 20 (#1505)
1 parent 51e8f84 commit 24452a7

File tree

6 files changed

+38
-7
lines changed

6 files changed

+38
-7
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- uses: actions/checkout@v4
2424
- uses: actions/setup-node@v4
2525
with:
26-
node-version: 16.x
26+
node-version: 20.x
2727
cache: npm
2828
- run: npm ci
2929
- run: npm run build
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Update Major Version
2+
run-name: Update ${{ github.event.inputs.main_version }} to ${{ github.event.inputs.target }}
3+
4+
on:
5+
workflow_dispatch:
6+
inputs:
7+
target:
8+
description: The target tag or reference
9+
required: true
10+
main_version:
11+
type: choice
12+
description: The major version tag to update
13+
options:
14+
- v5
15+
16+
jobs:
17+
tag:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v4
21+
with:
22+
token: ${{ secrets.ACTIONS_BOT_TOKEN }}
23+
fetch-depth: 0
24+
- name: Git config
25+
run: |
26+
git config user.name actions-bot
27+
git config user.email actions-bot@users.noreply.github.com
28+
- name: Tag new target
29+
run: git tag -f ${{ github.event.inputs.main_version }} ${{ github.event.inputs.target }}
30+
- name: Push new tag
31+
run: git push origin ${{ github.event.inputs.main_version }} --force

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ If the file does not exist the action exits silently.
1414

1515
```yml
1616
- name: Create Issue From File
17-
uses: peter-evans/create-issue-from-file@v4
17+
uses: peter-evans/create-issue-from-file@v5
1818
with:
1919
title: An example issue
2020
content-filepath: ./example-content/output.md
@@ -46,7 +46,7 @@ To create a project card for the issue, pass the `issue-number` step output to [
4646
```yml
4747
- name: Create Issue From File
4848
id: ciff
49-
uses: peter-evans/create-issue-from-file@v4
49+
uses: peter-evans/create-issue-from-file@v5
5050
with:
5151
title: An example issue
5252
content-filepath: ./example-content/output.md

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ outputs:
2222
issue-number:
2323
description: 'The number of the created issue'
2424
runs:
25-
using: 'node16'
25+
using: 'node20'
2626
main: 'dist/index.js'
2727
branding:
2828
icon: 'alert-circle'

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-issue-from-file",
3-
"version": "4.0.0",
3+
"version": "5.0.0",
44
"private": true,
55
"description": "An action to create an issue using content from a file",
66
"main": "lib/main.js",

0 commit comments

Comments
 (0)