chore: release v0.1.5 #13
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@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '24' | |
| registry-url: 'https://registry.npmjs.org' | |
| - name: Setup Zig | |
| run: | | |
| curl -L https://ziglang.org/builds/zig-x86_64-linux-0.16.0-dev.1859+212968c57.tar.xz -o zig.tar.xz | |
| tar -xf zig.tar.xz | |
| mv zig-x86_64-linux-0.16.0-dev.1859+212968c57 zig | |
| echo "$PWD/zig" >> $GITHUB_PATH | |
| - name: Verify Zig | |
| run: zig version | |
| - name: Build pantry from source | |
| run: | | |
| git clone --depth 1 https://github.com/home-lang/pantry.git ../pantry | |
| cd ../pantry/packages/zig | |
| mkdir -p pantry | |
| cd pantry | |
| git clone --depth 1 https://github.com/zig-utils/zig-cli.git | |
| git clone --depth 1 https://github.com/zig-utils/zig-config.git | |
| git clone --depth 1 https://github.com/zig-utils/zig-test-framework.git | |
| - name: Compile pantry | |
| run: | | |
| cd ../pantry/packages/zig | |
| zig build | |
| echo "$PWD/zig-out/bin" >> $GITHUB_PATH | |
| - name: Create GitHub Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| generate_release_notes: true | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Publish | |
| run: pantry npm:publish --access public | |
| env: | |
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |