1.0.2 #1
Workflow file for this run
This file contains hidden or 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: Publish | |
| on: | |
| release: | |
| types: [ published ] | |
| jobs: | |
| chrome: | |
| name: Chrome | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: 'chrome' | |
| - name: Setup Node.js environment | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: lts/* | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Upload to Chrome Web Store | |
| run: npx chrome-webstore-upload | |
| env: | |
| CLIENT_ID: ${{ secrets.CLIENT_ID }} | |
| CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }} | |
| EXTENSION_ID: ${{ secrets.EXTENSION_ID }} | |
| REFRESH_TOKEN: ${{ secrets.REFRESH_TOKEN }} | |
| firefox: | |
| name: Firefox | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: 'firefox' | |
| - name: Setup Node.js environment | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: lts/* | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Lint WebExtension | |
| run: npm test --ignore-scripts | |
| - name: Sign WebExtension | |
| run: npx web-ext sign | |
| env: | |
| WEB_EXT_API_KEY: ${{ secrets.WEB_EXT_API_KEY }} | |
| WEB_EXT_API_SECRET: ${{ secrets.WEB_EXT_API_SECRET }} | |
| WEB_EXT_APPROVAL_TIMEOUT: 0 | |
| WEB_EXT_CHANNEL: listed |