chore: release v0.8.6 #68
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*' | |
| permissions: | |
| contents: write | |
| packages: write | |
| id-token: write | |
| jobs: | |
| npm: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| version: ${{ env.VERSION }} | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| - name: Use Cached node_modules | |
| uses: actions/cache@v4 | |
| with: | |
| path: node_modules | |
| key: node-modules-${{ hashFiles('**/bun.lock') }} | |
| restore-keys: | | |
| node-modules- | |
| - name: Install Dependencies | |
| run: bun install | |
| - name: Extract tag version | |
| id: get_version | |
| run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV | |
| - name: Publish to npm | |
| run: bun publish --access public | |
| env: | |
| BUN_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | |
| - name: Create GitHub Release | |
| id: create_release | |
| uses: stacksjs/[email protected] | |
| with: | |
| files: | | |
| ./bin/buddy-bot-linux-x64.zip | |
| ./bin/buddy-bot-linux-arm64.zip | |
| ./bin/buddy-bot-windows-x64.zip | |
| ./bin/buddy-bot-darwin-x64.zip | |
| ./bin/buddy-bot-darwin-arm64.zip | |
| # --- Homebrew tap update support --- | |
| # Path to your Homebrew formula template (update this path as needed) | |
| # homebrewFormula: .github/homebrew-formula.rb | |
| # The owner/repo of your Homebrew tap (update this value as needed) | |
| # homebrewRepo: stacksjs/homebrew-tap | |
| # Optionally uncomment and set these if you need custom values: | |
| # homebrewBranch: main | |
| # homebrewPath: Formula | |
| # homebrewCommitFormat: "update: {{ formula }} to {{ version }}" | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |