bump version to 0.2.11 #30
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] | |
| paths: | |
| - 'src/**' | |
| - 'package.json' | |
| - 'build.ts' | |
| - 'bun.lock' | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| id-token: write | |
| jobs: | |
| build-and-release: | |
| name: Build and Release | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v1 | |
| with: | |
| bun-version: latest | |
| - name: Install dependencies | |
| run: bun install --frozen-lockfile | |
| - name: Build binaries for all platforms | |
| run: bun run build | |
| - name: Get version from package.json | |
| id: package-version | |
| run: echo "version=$(jq -r '.version' package.json)" >> $GITHUB_OUTPUT | |
| - name: Create GitHub Release | |
| uses: softprops/action-gh-release@v1 | |
| with: | |
| tag_name: v${{ steps.package-version.outputs.version }} | |
| name: Effect DevTools TUI v${{ steps.package-version.outputs.version }} | |
| body: | | |
| ## Effect DevTools Terminal UI | |
| ### Installation via npm | |
| ```bash | |
| npm install -g effect-devtui | |
| effect-devtools | |
| ``` | |
| ### Or download binary directly | |
| Download the binary for your platform below and run it directly. | |
| ```bash | |
| # Linux x64 | |
| ./effect-devtools-linux-x64 | |
| # macOS (Intel) | |
| ./effect-devtools-darwin-x64 | |
| # Windows | |
| effect-devtools-windows-x64.exe | |
| ``` | |
| Built from commit ${{ github.sha }} | |
| files: | | |
| dist/effect-devtools-linux-x64/effect-devtools-linux-x64 | |
| dist/effect-devtools-linux-x64-musl/effect-devtools-linux-x64-musl | |
| dist/effect-devtools-darwin-x64/effect-devtools-darwin-x64 | |
| dist/effect-devtools-windows-x64/effect-devtools-windows-x64.exe | |
| draft: false | |
| prerelease: false | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Setup Node for npm publishing | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| registry-url: 'https://registry.npmjs.org' | |
| - name: Publish to npm | |
| run: npm publish --access public --provenance | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |