chore: release v0.2.8 #23
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: Releaser | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| workflow_dispatch: | |
| jobs: | |
| npm: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| id-token: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Pantry | |
| uses: home-lang/pantry/packages/action@main | |
| with: | |
| token: ${{ secrets.PANTRY_TOKEN }} | |
| - name: Install Dependencies | |
| run: bun install | |
| - name: Build | |
| run: cd packages/crosswind && bun run build | |
| - name: Cross-compile Binaries | |
| run: cd packages/crosswind && bun run compile:all | |
| - name: Package Binaries | |
| run: cd packages/crosswind && bun run zip:all | |
| - name: Publish to npm | |
| run: pantry publish --npm --access public | |
| env: | |
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| PANTRY_REGISTRY_TOKEN: ${{ secrets.PANTRY_TOKEN }} | |
| - name: Create GitHub Release | |
| uses: home-lang/pantry/packages/action@main | |
| with: | |
| install: 'false' | |
| release: 'true' | |
| release-files: | | |
| packages/crosswind/bin/crosswind-linux-x64.zip | |
| packages/crosswind/bin/crosswind-linux-arm64.zip | |
| packages/crosswind/bin/crosswind-windows-x64.zip | |
| packages/crosswind/bin/crosswind-darwin-x64.zip | |
| packages/crosswind/bin/crosswind-darwin-arm64.zip | |
| release-changelog: CHANGELOG.md | |
| release-token: ${{ secrets.GITHUB_TOKEN }} |