Beta Release #55
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |