File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 3
3
workflow_dispatch :
4
4
inputs :
5
5
channel :
6
- description : ' Release channel to publish to'
6
+ description : " Release channel to publish to"
7
7
required : true
8
8
type : choice
9
9
options :
@@ -35,12 +35,21 @@ jobs:
35
35
with :
36
36
node-version : 18.x
37
37
cache : " pnpm"
38
+ - name : Change version (Staging)
39
+ if : env.CHANNEL == 'staging'
40
+ run : |
41
+ DATE=$(date +'%Y.%m.%d')
42
+ BASE_VERSION=$(jq -r .version package.json | cut -d'-' -f1)
43
+
44
+ NEW_VERSION="${BASE_VERSION}-${DATE}"
45
+ jq --arg version "$NEW_VERSION" '.version = $version' package.json > package_tmp.json && mv package_tmp.json package.json
46
+
38
47
- name : Build the extension (Chrome)
39
48
run : pnpm plasmo build --target=chrome-mv3
40
49
- name : Build the extension (Firefox)
41
50
run : pnpm plasmo build --target=firefox-mv2
42
51
- name : Package the extension into zip artifacts
43
- run : |
52
+ run : |
44
53
pnpm package --target=chrome-mv3
45
54
pnpm package --target=firefox-mv2
46
55
- name : Browser Platform Publish (staging)
You can’t perform that action at this time.
0 commit comments