Skip to content

Fix script

Fix script #53

Workflow file for this run

name: 'test'
on:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
environment:
name: test
steps:
- uses: actions/checkout@v4
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install pnpm
run: npm install -g pnpm
- name: Install dependencies
run: pnpm install
- name: Build extension
run: FF_ID=${{ env.FF_ID }} pnpm build:prod
- name: Zip the build
run: |
cd build
zip -r ../build.zip .
cd ..
- name: Chrome upload & release
uses: mobilefirstllc/cws-publish@latest
continue-on-error: true
with:
action: publish
client_id: ${{ secrets.CHROME_CLIENT_ID }}
client_secret: ${{ secrets.CHROME_CLIENT_SECRET }}
refresh_token: ${{ secrets.CHROME_REFRESH_TOKEN }}
extension_id: ${{ env.CHROME_ID }}
zip_file: build.zip
- name: Firefox upload & release
uses: cardinalby/[email protected]
with:
zipFilePath: build.zip
extensionId: ${{ env.FF_ID }}
jwtIssuer: ${{ secrets.FF_JWT_ISSUER }}
jwtSecret: ${{ secrets.FF_JWT_SECRET }}
- name: Edge upload & release
uses: wdzeng/[email protected]
with:
product-id: ${{ env.EDGE_ID }}
zip-path: build.zip
client-id: ${{ secrets.EDGE_CLIENT_ID }}
client-secret: ${{ secrets.EDGE_CLIENT_SECRET }}
access-token-url: ${{ secrets.EDGE_ACCESS_TOKEN_URL }}