Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update runtime to node 20 #1505

Merged
merged 1 commit into from Jan 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Expand Up @@ -23,7 +23,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16.x
node-version: 20.x
cache: npm
- run: npm ci
- run: npm run build
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/update-major-version.yml
@@ -0,0 +1,31 @@
name: Update Major Version
run-name: Update ${{ github.event.inputs.main_version }} to ${{ github.event.inputs.target }}

on:
workflow_dispatch:
inputs:
target:
description: The target tag or reference
required: true
main_version:
type: choice
description: The major version tag to update
options:
- v5

jobs:
tag:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.ACTIONS_BOT_TOKEN }}
fetch-depth: 0
- name: Git config
run: |
git config user.name actions-bot
git config user.email actions-bot@users.noreply.github.com
- name: Tag new target
run: git tag -f ${{ github.event.inputs.main_version }} ${{ github.event.inputs.target }}
- name: Push new tag
run: git push origin ${{ github.event.inputs.main_version }} --force
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -14,7 +14,7 @@ If the file does not exist the action exits silently.

```yml
- name: Create Issue From File
uses: peter-evans/create-issue-from-file@v4
uses: peter-evans/create-issue-from-file@v5
with:
title: An example issue
content-filepath: ./example-content/output.md
Expand Down Expand Up @@ -46,7 +46,7 @@ To create a project card for the issue, pass the `issue-number` step output to [
```yml
- name: Create Issue From File
id: ciff
uses: peter-evans/create-issue-from-file@v4
uses: peter-evans/create-issue-from-file@v5
with:
title: An example issue
content-filepath: ./example-content/output.md
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Expand Up @@ -22,7 +22,7 @@ outputs:
issue-number:
description: 'The number of the created issue'
runs:
using: 'node16'
using: 'node20'
main: 'dist/index.js'
branding:
icon: 'alert-circle'
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "create-issue-from-file",
"version": "4.0.0",
"version": "5.0.0",
"private": true,
"description": "An action to create an issue using content from a file",
"main": "lib/main.js",
Expand Down