Skip to content

Commit 3676835

Browse files
authored
publish client (#61)
1 parent bba2d10 commit 3676835

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/release.yml

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
name: Server - Release
22

33
on:
4-
push:
5-
tags:
6-
- "v*.*.*"
4+
release:
5+
types: [ published ]
76

87
env:
98
node_version: 14
@@ -25,15 +24,17 @@ jobs:
2524
- uses: jetli/[email protected]
2625
with:
2726
version: 'latest'
27+
- name: Set Release Version from Tag
28+
run: echo "RELEASE_VERSION=$(echo ${{github.ref_name}} | sed s/v//g)" >> $GITHUB_ENV
2829
- name: Publish Server
2930
# see https://stackoverflow.com/questions/58177786/get-the-current-pushed-tag-in-github-actions
3031
run: |
31-
./scripts/publish-server.sh ${{ github.event.release.tag_name }}
32+
./scripts/publish-server.sh ${{ env.RELEASE_VERSION }}
3233
env:
3334
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3435
- name: Publish Client
3536
# rustup target add wasm32-unknown-unknown # automatically done by wasm-pack
3637
run: |
37-
./scripts/publish-client.sh ${{ github.event.release.tag_name }}
38+
./scripts/publish-client.sh ${{ env.RELEASE_VERSION }}
3839
env:
3940
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)