Skip to content

Commit 4f114eb

Browse files
committed
chore: update ci and release github actions with permissions and clearer job names
1 parent bd5c95e commit 4f114eb

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
test:
11-
name: Test on Node.js ${{ matrix.node-version }}
11+
name: Test on Node.js ${{ matrix.node-version }} (${{ matrix.os }})
1212
runs-on: ${{ matrix.os }}
1313

1414
strategy:

.github/workflows/release.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
tags:
66
- 'v*'
77

8+
permissions:
9+
contents: write
10+
811
jobs:
912
release:
1013
name: Create Release
@@ -47,15 +50,12 @@ jobs:
4750
echo "EOF" >> $GITHUB_OUTPUT
4851
4952
- name: Create GitHub Release
50-
uses: actions/create-release@v1
5153
env:
5254
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
53-
with:
54-
tag_name: ${{ github.ref }}
55-
release_name: Release ${{ github.ref }}
56-
body: ${{ steps.changelog.outputs.CHANGELOG }}
57-
draft: false
58-
prerelease: false
55+
run: |
56+
gh release create ${{ github.ref_name }} \
57+
--title "Release ${{ github.ref_name }}" \
58+
--notes "${{ steps.changelog.outputs.CHANGELOG }}"
5959
6060
# Uncomment to enable automatic npm publishing
6161
# Requires NPM_TOKEN secret to be set in repository settings

0 commit comments

Comments
 (0)