Skip to content

Commit ad9fe7b

Browse files
committed
publish server
1 parent c4b87eb commit ad9fe7b

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

.github/workflows/release.yml

+4-8
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,8 @@ name: Server - Release
22

33
on:
44
push:
5-
branches: [ "main" ]
6-
pull_request:
7-
branches: [ "main" ]
8-
#on:
9-
# push:
10-
# tags:
11-
# - "v*.*.*"
5+
tags:
6+
- "v*.*.*"
127

138
env:
149
node_version: 14
@@ -27,6 +22,7 @@ jobs:
2722
- uses: jetli/[email protected]
2823
with:
2924
version: 'latest'
30-
- run: ./scripts/publish-server.sh 0.0.1 # pass the version as an argument ${{ github.event.release.tag_name }} https://stackoverflow.com/questions/58177786/get-the-current-pushed-tag-in-github-actions
25+
# see https://stackoverflow.com/questions/58177786/get-the-current-pushed-tag-in-github-actions
26+
- run: ./scripts/publish-server.sh ${{ github.event.release.tag_name }}
3127
env:
3228
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)