File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -18,25 +18,26 @@ jobs:
18
18
- uses : actions/setup-node@v3
19
19
with :
20
20
node-version : 18
21
- - run : corepack enable; yarn
21
+ - run : corepack enable
22
22
env :
23
23
COREPACK_ENABLE_DOWNLOAD_PROMPT : 0
24
24
- run : |
25
25
# Get tag name from event
26
26
tag_name="${{ github.event.release.tag_name }}"
27
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
+ yarn build
33
+
28
34
cmd="yarn npm publish --access public"
29
35
if [ "${{ github.event.release.prerelease }}" == "true" ]; then
30
36
cmd+=" --tag=beta"
31
37
else
32
38
cmd+=" --tag=latest"
33
39
fi
34
40
35
- if [[ "$tag_name" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
36
- eval $cmd
37
- else
38
- cd $(echo $tag_name | rev | cut -d'/' -f2- | rev)
39
- eval $cmd
40
- fi
41
+ eval $cmd
41
42
env:
42
43
YARN_NPM_AUTH_TOKEN: ${{ secrets.YARN_NPM_AUTH_TOKEN }}
You can’t perform that action at this time.
0 commit comments