chore: bump all package versions to 1.1.3 #34
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: Build and Release | |
| on: | |
| push: | |
| tags: | |
| - 'v*.*.*' | |
| permissions: | |
| contents: write | |
| jobs: | |
| build-and-release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 20 | |
| - name: Install pnpm | |
| run: npm install -g pnpm | |
| - name: Configure Git to use HTTPS | |
| run: | | |
| git config --global url."https://github.com/".insteadOf git@github.com: | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Install Snapcraft | |
| run: sudo snap install snapcraft --classic | |
| # ------------------------------ | |
| # Build Core package | |
| # ------------------------------ | |
| - name: Build Core Package | |
| run: pnpm --filter @munlicode/munliwall-core run build | |
| # ------------------------------ | |
| # Build & Publish Desktop App (AppImage, Deb) | |
| # ------------------------------ | |
| - name: Build and Publish Desktop App (Linux - AppImage, Deb) | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| # Note: We removed 'snap' from linux.target in electron-builder.yml to prevent Snap Store publishing attempts. | |
| # The snap artifact will be built but not published by electron-builder. | |
| run: pnpm --filter @munlicode/munliwall-desktop run release:linux | |
| # ------------------------------ | |
| # Build CLI (Optional / Secondary) | |
| # ------------------------------ | |
| # Note: We don't run 'build' explicitly here because 'dist' script runs 'build' which runs esbuild. | |
| - name: Build and Package CLI | |
| run: pnpm --filter @munlicode/munliwall-cli run dist | |
| - name: Zip CLI Artifacts | |
| run: | | |
| mkdir -p artifacts | |
| cd packages/cli/dist | |
| # Zip only the binaries, flattening the structure | |
| zip -r ../../../artifacts/cli.zip munliwall-cli-* | |
| # ------------------------------ | |
| # Upload Snap and CLI Artifacts to Release | |
| # ------------------------------ | |
| - name: Upload Snap and CLI to Release | |
| uses: ncipollo/release-action@v1 | |
| with: | |
| tag: ${{ github.ref_name }} | |
| allowUpdates: true | |
| # electron-builder uploads AppImage and Deb. Add Snap and CLI zip here. | |
| artifacts: | | |
| dist/munliwall-*-x64.snap | |
| artifacts/cli.zip | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| omitBodyDuringUpdate: true | |
| omitNameDuringUpdate: true |