Skip to content

Commit 136ef69

Browse files
committed
chore(ci): replace actions/create-release with GH
actions/create-release is not maintained anymore and depends on Node 12.
1 parent 4872f7b commit 136ef69

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/test-lint.yml

+7-6
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,11 @@ jobs:
109109
runs-on: ubuntu-latest
110110
needs: [lint, build]
111111
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
112+
113+
# This is required for `gh release create` to work
114+
permissions:
115+
contents: write
116+
112117
steps:
113118
- uses: actions/checkout@v4
114119
with:
@@ -138,11 +143,7 @@ jobs:
138143

139144
- name: Create Release
140145
id: create_release
141-
uses: actions/create-release@master
142146
env:
143147
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
144-
with:
145-
tag_name: ${{ steps.tags.outputs.tag }}
146-
release_name: ${{ steps.tags.outputs.tag }}
147-
draft: true
148-
prerelease: false
148+
run: |
149+
gh release create --draft ${{ steps.tags.outputs.tag }}

0 commit comments

Comments
 (0)