Skip to content

Commit 0fdbebd

Browse files
authored
Merge pull request #11 from Jmainguy/node20
feat: support node20
2 parents fceea31 + bf98b26 commit 0fdbebd

File tree

6 files changed

+47
-4
lines changed

6 files changed

+47
-4
lines changed

.github/workflows/release.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
name: release-please
3+
4+
on:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
release-please:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: google-github-actions/release-please-action@v4
14+
id: release
15+
- uses: actions/checkout@v4
16+
- name: tag major and minor versions
17+
if: ${{ steps.release.outputs.release_created }}
18+
run: |
19+
git config user.name github-actions[bot]
20+
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
21+
git remote add gh-token "https://${{ secrets.GITHUB_TOKEN }}@github.com/google-github-actions/release-please-action.git"
22+
git tag -d v${{ steps.release.outputs.major }} || true
23+
git tag -d v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} || true
24+
git push origin :v${{ steps.release.outputs.major }} || true
25+
git push origin :v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} || true
26+
git tag -a v${{ steps.release.outputs.major }} -m "Release v${{ steps.release.outputs.major }}"
27+
git tag -a v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} -m "Release v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}"
28+
git push origin v${{ steps.release.outputs.major }}
29+
git push origin v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
name: A job to test action with prefix
1010
steps:
11-
- uses: actions/checkout@v2
11+
- uses: actions/checkout@v4
1212
- name: JSON to variables
1313
uses: antifree/json-to-variables@HEAD
1414
with:
@@ -21,7 +21,7 @@ jobs:
2121
runs-on: ubuntu-latest
2222
name: A job to test action without prefix
2323
steps:
24-
- uses: actions/checkout@v2
24+
- uses: actions/checkout@v4
2525
- name: JSON to variables
2626
uses: antifree/json-to-variables@HEAD
2727
with:

.release-please-manifest.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
".": "1.1.2"
3+
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ The prefix (optional). Default value is empty string.
3333
### YML example
3434
```yml
3535
- name: JSON to variables
36-
uses: antifree/[email protected]
36+
uses: antifree/[email protected] # x-release-please-version
3737
with:
3838
filename: 'test.json'
3939
prefix: 'test'

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ inputs:
1313
required: false
1414
default: ''
1515
runs:
16-
using: 'node16'
16+
using: 'node20'
1717
main: 'dist/index.js'

release-please-config.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"packages": {
3+
".": {
4+
"release-type": "simple",
5+
"extra-files": [
6+
"README.md"
7+
]
8+
}
9+
},
10+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"
11+
}

0 commit comments

Comments
 (0)