Skip to content

Commit 277bb0d

Browse files
committed
fix release
1 parent 76a2e9c commit 277bb0d

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,16 @@ on:
88
jobs:
99
release:
1010
runs-on: ubuntu-latest
11-
11+
permissions:
12+
contents: write
1213
steps:
1314
- name: Checkout code
1415
uses: actions/checkout@v4
1516

1617
- name: Setup Node.js
1718
uses: actions/setup-node@v4
1819
with:
19-
node-version: "20"
20+
node-version: "22.x"
2021
cache: "npm"
2122

2223
- name: Install dependencies
@@ -45,12 +46,10 @@ jobs:
4546

4647
- name: Create Release
4748
id: create_release
48-
uses: actions/create-release@v1
49-
env:
50-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49+
uses: ncipollo/release-action@v1
5150
with:
52-
tag_name: ${{ steps.tag.outputs.tag }}
53-
release_name: Release ${{ steps.tag.outputs.tag }}
51+
tag: ${{ steps.tag.outputs.tag }}
52+
name: Release ${{ steps.tag.outputs.tag }}
5453
body: |
5554
## Changes in ${{ steps.tag.outputs.tag }}
5655

0 commit comments

Comments
 (0)