Skip to content

Commit

Permalink
chore: add github action
Browse files Browse the repository at this point in the history
Aqours committed Nov 21, 2023
1 parent 0989aed commit 112b0e6
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: CWS Publish
on:
push:
tags:
- '*'
jobs:
Run-CWS-Publish:
runs-on: ubuntu-latest
env:
SOURCE: dist/bundle.zip
EXTENSION_ID: cjphebojlojkmfgclckgpnjdkgkfkmkf
CLIENT_ID: $WS_CLIENT_ID
CLIENT_SECRET: $WS_CLIENT_SECRET
REFRESH_TOKEN: $WS_REFRESH_TOKEN
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: corepack enable
- run: pnpm i
- run: pnpm run bundle
- run: chrome-webstore-upload upload --source $SOURCE --extension-id $EXTENSION_ID --client-id $CLIENT_ID --client-secret $CLIENT_SECRET --refresh-token $REFRESH_TOKEN --auto-publish

0 comments on commit 112b0e6

Please sign in to comment.