Skip to content

Commit a5a0e6e

Browse files
authored
Update node.js.yml
1 parent 8179d5a commit a5a0e6e

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

.github/workflows/node.js.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@ on:
88
branches: [ "master" ]
99
pull_request:
1010
branches: [ "master" ]
11-
11+
env:
12+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Automatically provided token with repo scope
13+
TAG: ${{ github.ref_name }} # The name of the pushed tag (e.g., v1.0.0)
1214
jobs:
1315
build:
14-
16+
name: Create Release
1517
runs-on: ubuntu-latest
16-
1718
strategy:
1819
matrix:
1920
node-version: [18.x, 20.x, 22.x]
2021
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
21-
2222
steps:
2323
- uses: actions/checkout@v4
2424
- name: Use Node.js ${{ matrix.node-version }}
@@ -30,3 +30,14 @@ jobs:
3030
- run: npm install
3131
- run: npm test
3232
- run: npx tsc
33+
- name: Create Release
34+
id: create_release
35+
uses: comnoco/create-release@v2
36+
env:
37+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
38+
with:
39+
tag_name: ${{ github.ref }}
40+
release_name: Release ${{ github.ref }}
41+
draft: false
42+
prerelease: false
43+

0 commit comments

Comments
 (0)