File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 1
1
name : Server - Release
2
2
3
3
on :
4
- push :
5
- tags :
6
- - " v*.*.*"
4
+ release :
5
+ types : [ published ]
7
6
8
7
env :
9
8
node_version : 14
@@ -25,15 +24,17 @@ jobs:
25
24
26
25
with :
27
26
version : ' latest'
27
+ - name : Set Release Version from Tag
28
+ run : echo "RELEASE_VERSION=$(echo ${{github.ref_name}} | sed s/v//g)" >> $GITHUB_ENV
28
29
- name : Publish Server
29
30
# see https://stackoverflow.com/questions/58177786/get-the-current-pushed-tag-in-github-actions
30
31
run : |
31
- ./scripts/publish-server.sh ${{ github.event.release.tag_name }}
32
+ ./scripts/publish-server.sh ${{ env.RELEASE_VERSION }}
32
33
env :
33
34
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
34
35
- name : Publish Client
35
36
# rustup target add wasm32-unknown-unknown # automatically done by wasm-pack
36
37
run : |
37
- ./scripts/publish-client.sh ${{ github.event.release.tag_name }}
38
+ ./scripts/publish-client.sh ${{ env.RELEASE_VERSION }}
38
39
env :
39
40
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments