chore(deps)(deps-dev): bump @babel/plugin-transform-modules-systemjs from 7.29.0 to 7.29.4 #171
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: CI | |
| permissions: | |
| contents: read | |
| on: | |
| push: | |
| pull_request: | |
| workflow_dispatch: | |
| inputs: | |
| release_extension: | |
| description: "Build and release Chrome extension (main branch only)" | |
| required: false | |
| type: boolean | |
| default: false | |
| draft_release: | |
| description: "Create GitHub release as draft" | |
| required: false | |
| type: boolean | |
| default: true | |
| jobs: | |
| build-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Install Playwright browsers | |
| run: npx playwright install --with-deps chromium | |
| - name: Build and run tests | |
| run: npm run build:ci | |
| release-extension: | |
| if: github.event_name == 'workflow_dispatch' && inputs.release_extension == true && github.ref == 'refs/heads/main' | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build extension | |
| run: npm run extension:prepare | |
| - name: Read extension version | |
| id: version | |
| run: | | |
| VERSION=$(node -e "const fs=require('fs');const m=JSON.parse(fs.readFileSync('extension/manifest.json','utf8'));console.log(m.version)") | |
| echo "version=$VERSION" >> $GITHUB_OUTPUT | |
| - name: Create ZIP | |
| run: | | |
| cd dist-extension | |
| zip -r ../TryDevUtils_extension_v${{ steps.version.outputs.version }}.zip . | |
| - name: Create GitHub Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| tag_name: extension-v${{ steps.version.outputs.version }} | |
| name: TryDevUtils Extension v${{ steps.version.outputs.version }} | |
| draft: ${{ inputs.draft_release }} | |
| generate_release_notes: true | |
| files: TryDevUtils_extension_v${{ steps.version.outputs.version }}.zip |