add ci id-token permission #12
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: Build Template | |
| on: | |
| pull_request: | |
| branches: | |
| - "*" | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| name: Create artifacts | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ./template | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v5 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 22 | |
| cache-dependency-path: "template/yarn.lock" | |
| cache: "yarn" | |
| - name: Install dependencies | |
| run: yarn | |
| - name: Create Chrome artifacts | |
| run: yarn zip | |
| - name: Create Firefox artifacts | |
| run: yarn zip:firefox | |
| - name: Upload artifacts | |
| uses: actions/upload-artifact@v5 | |
| with: | |
| name: extensions | |
| path: template/package/* |