-
Notifications
You must be signed in to change notification settings - Fork 0
90 lines (74 loc) · 2.34 KB
/
release.yml
File metadata and controls
90 lines (74 loc) · 2.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
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-devtui
```
### Or download binary directly
Download the binary for your platform below and run it directly.
```bash
# Linux x64
./effect-devtui-linux-x64
# macOS (Intel)
./effect-devtui-darwin-x64
# Windows
effect-devtui-windows-x64.exe
```
Built from commit ${{ github.sha }}
files: |
dist/effect-devtui-linux-x64/effect-devtui-linux-x64
dist/effect-devtui-linux-x64-musl/effect-devtui-linux-x64-musl
dist/effect-devtui-darwin-x64/effect-devtui-darwin-x64
dist/effect-devtui-windows-x64/effect-devtui-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 }}