We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e324ec4 commit 95791f9Copy full SHA for 95791f9
.github/workflows/publish.yml
@@ -25,18 +25,20 @@ jobs:
25
# Get tag name from event
26
tag_name="${{ github.event.release.tag_name }}"
27
28
+ if [[ ! "$tag_name" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
29
+ cd $(echo $tag_name | rev | cut -d'/' -f2- | rev)
30
+ fi
31
+
32
+ # Build package
33
+ yarn build
34
35
cmd="yarn npm publish --access public"
36
if [ "${{ github.event.release.prerelease }}" == "true" ]; then
37
cmd+=" --tag=beta"
38
else
39
cmd+=" --tag=latest"
40
fi
41
- if [[ "$tag_name" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
- eval $cmd
- else
- cd $(echo $tag_name | rev | cut -d'/' -f2- | rev)
- fi
42
+ eval $cmd
43
env:
44
YARN_NPM_AUTH_TOKEN: ${{ secrets.YARN_NPM_AUTH_TOKEN }}
0 commit comments