File tree 2 files changed +14
-6
lines changed
2 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -92,19 +92,19 @@ jobs:
92
92
pnpm run release:changelog
93
93
94
94
- name : Fetch latest tag
95
- if : ${{ github.event. inputs.tag-name == '' }}
95
+ if : ${{ inputs.tag-name == '' }}
96
96
id : latest-tag
97
97
run : |
98
98
# ================= Fetch tag =================
99
99
100
- tag_name=$(git describe --abbrev=0)
100
+ tag_name=$(git describe --abbrev=0 --match 'v*' )
101
101
echo "Tag found: '\e[34m$tag_name\e[0m'"
102
102
echo "TAG_NAME=$tag_name" >> "$GITHUB_OUTPUT"
103
103
104
104
- name : Push Release to github
105
105
uses : softprops/action-gh-release@v1
106
106
with :
107
- tag_name : ${{ github.event. inputs.tag-name || steps.latest-tag.outputs.TAG_NAME }}
107
+ tag_name : ${{ inputs.tag-name || steps.latest-tag.outputs.TAG_NAME }}
108
108
body_path : RELEASE.md
109
109
files : dist/trakt-extension.zip
110
110
@@ -118,5 +118,5 @@ jobs:
118
118
# ================= Publish to Chrome store =================
119
119
120
120
# Uploading zip to web store
121
- yarn dlx -q chrome-webstore-upload-cli upload --source dist/trakt-extension.zip --extension-id "$CHROME_WEB_STORE_EXTENSION_ID" --client-id "$CHROME_WEB_STORE_CLIENT_ID" --client-secret "$CHROME_WEB_STORE_CLIENT_SECRET" --refresh-token "$CHROME_WEB_STORE_REFRESH_TOKEN"
121
+ npx -s chrome-webstore-upload-cli upload --source dist/trakt-extension.zip --extension-id "$CHROME_WEB_STORE_EXTENSION_ID" --client-id "$CHROME_WEB_STORE_CLIENT_ID" --client-secret "$CHROME_WEB_STORE_CLIENT_SECRET" --refresh-token "$CHROME_WEB_STORE_REFRESH_TOKEN"
122
122
Original file line number Diff line number Diff line change 28
28
name : Tag and release commit
29
29
runs-on : ubuntu-latest
30
30
31
+ outputs :
32
+ tag-name : ${{ steps.push-tag.outputs.tag_name }}
33
+
31
34
steps :
32
35
- name : Checkout branch ${{ github.ref }}
33
36
uses : actions/checkout@v3
62
65
git config user.email "<>"
63
66
64
67
# generate release
65
- yarn release
68
+ pnpm run release
66
69
67
70
- name : Push to remote
71
+ id : push-tag
68
72
run : |
69
73
# ================= Remote =================
70
74
@@ -74,14 +78,18 @@ jobs:
74
78
75
79
# push changes
76
80
git push origin --follow-tags
81
+
82
+ tag_name=$(git describe --abbrev=0 --match 'v*')
83
+
84
+ echo "tag_name=$tag_name" >> "$GITHUB_OUTPUT"
77
85
78
86
publish :
79
87
name : Publish
80
88
needs : release
81
89
uses : ./.github/workflows/publish.yml
82
90
secrets : inherit
83
91
with :
84
- tag-name : ${{ inputs.tag-name }}
92
+ tag-name : ${{ inputs.tag-name || needs.release.outputs.tag-name }}
85
93
skip-npm : ${{ inputs.skip-npm }}
86
94
87
95
deploy :
You can’t perform that action at this time.
0 commit comments