Merge branch 'main' of github.com:MrWillCom/linkdingX #17
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: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| issues: write | |
| jobs: | |
| checks: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24 | |
| - name: Enable Corepack | |
| run: corepack enable | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Check formatting | |
| run: pnpm fmt:check | |
| - name: Type check | |
| run: pnpm compile | |
| - name: Build Chrome | |
| run: pnpm build | |
| - name: Build Firefox | |
| run: pnpm build:firefox | |
| release-please: | |
| if: github.event_name == 'push' | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: googleapis/release-please-action@v4 | |
| id: release | |
| with: | |
| release-type: node | |
| - uses: actions/checkout@v4 | |
| if: ${{ steps.release.outputs.release_created }} | |
| - name: Setup Node.js | |
| if: ${{ steps.release.outputs.release_created }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24 | |
| - name: Enable Corepack | |
| if: ${{ steps.release.outputs.release_created }} | |
| run: corepack enable | |
| - name: Install dependencies | |
| if: ${{ steps.release.outputs.release_created }} | |
| run: pnpm install --frozen-lockfile | |
| - name: Zip extensions | |
| if: ${{ steps.release.outputs.release_created }} | |
| run: | | |
| pnpm zip | |
| pnpm zip:firefox | |
| - name: Upload ZIPs to GitHub Release | |
| if: ${{ steps.release.outputs.release_created }} | |
| run: gh release upload ${{ steps.release.outputs.tag_name }} .output/*-chrome.zip .output/*-firefox.zip | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |