bump version to 0.3.0 #2
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: Release | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| permissions: | |
| contents: write | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Validate version | |
| run: | | |
| TAG_VERSION="${GITHUB_REF_NAME#v}" | |
| MANIFEST_VERSION=$(node -p "require('./manifest.json').version") | |
| if [ "$TAG_VERSION" != "$MANIFEST_VERSION" ]; then | |
| echo "::error::Tag version ($TAG_VERSION) does not match manifest.json version ($MANIFEST_VERSION)" | |
| exit 1 | |
| fi | |
| - name: Lint (web-ext) | |
| run: npm run lint | |
| - name: Lint (Biome) | |
| run: npx biome check . | |
| - name: Build | |
| run: npm run build | |
| - name: Sign (AMO submission) | |
| run: npx web-ext sign --channel=listed --amo-metadata=./amo.json --api-key=${{ secrets.API_KEY }} --api-secret=${{ secrets.API_SECRET }} | |
| - name: Create GitHub Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| generate_release_notes: true | |
| files: web-ext-artifacts/*.zip |