We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fda9e5f commit cfa1d6fCopy full SHA for cfa1d6f
1 file changed
.github/workflows/release.yml
@@ -1,14 +1,38 @@
1
name: Release
2
+
3
on:
4
push:
- tags: ['v*']
5
+ tags:
6
+ - 'v*'
7
8
+permissions:
9
+ contents: write
10
11
jobs:
- test:
12
+ release:
13
runs-on: ubuntu-latest
14
steps:
15
- uses: actions/checkout@v4
16
17
- uses: oven-sh/setup-bun@v2
18
19
- run: bun install
- - run: bun run typecheck
- - run: bun test
20
21
+ - run: bun run build
22
23
+ - name: Create GitHub Release
24
+ uses: softprops/action-gh-release@v2
25
+ with:
26
+ generate_release_notes: true
27
+ env:
28
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29
30
+ - uses: actions/setup-node@v4
31
32
+ node-version: '20'
33
+ registry-url: 'https://registry.npmjs.org'
34
35
+ - name: Publish to npm
36
+ run: npm publish
37
38
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
0 commit comments