We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c7938a commit 18f53d5Copy full SHA for 18f53d5
1 file changed
.github/workflows/release.yml
@@ -12,13 +12,11 @@ jobs:
12
goreleaser:
13
runs-on: ubuntu-latest
14
steps:
15
- -
16
- name: Checkout
+ - name: Checkout
17
uses: actions/checkout@v4
18
with:
19
fetch-depth: 0
20
21
- name: Set up Go
+ - name: Set up Go
22
uses: actions/setup-go@v4
23
24
go-version: 1.21.7
@@ -29,6 +27,21 @@ jobs:
29
27
distribution: goreleaser
30
28
version: latest
31
args: release --clean
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32
+
33
+ - uses: actions/setup-node@v4
34
+ name: Setup Node
35
+ with:
36
+ node-version: 20
37
38
+ - name: Generate NPM files
39
+ run: |
40
+ go run ./scripts/npm.go
41
42
+ - name: Publish to NPM
43
44
+ cd dist-npm
45
+ npm publish
46
env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
0 commit comments