-
Notifications
You must be signed in to change notification settings - Fork 245
44 lines (36 loc) · 1.31 KB
/
beta.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Beta Release
on:
workflow_dispatch:
jobs:
chrome_mv3_beta:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
cache: 'npm'
- name: Install dependencies
run: |
npm run install-ci
- name: Fetch config and update version
run: |
npm run bundle-config
node scripts/bumpVersion.js $(date "+%Y.%m.%d")
echo "VERSION=$(jq -r .version ./browsers/chrome-mv3/manifest.json)" >> $GITHUB_ENV
- name: Commit config and version updates
uses: stefanzweifel/git-auto-commit-action@8756aa072ef5b4a080af5dc8fef36c5d586e521d
with:
commit_message: "Prepare release ${{ env.VERSION }}"
create_branch: true
branch: "release/beta/${{ env.VERSION }}"
- name: Build Chrome MV3 Beta
run: |
npm run beta-chrome-mv3
- name: Publish to Chrome Store
env:
CWS_CLIENT_ID: ${{ secrets.CWS_CLIENT_ID }}
CWS_CLIENT_SECRET: ${{ secrets.CWS_CLIENT_SECRET }}
CWS_REFRESH_TOKEN: ${{ secrets.CWS_REFRESH_TOKEN }}
run: |
bash ./scripts/chrome-store-publish.sh ${{ secrets.CWS_BETA_EXTENSION_ID }} ./build/chrome-mv3/release/chrome-mv3-release-*.zip