Skip to content

Commit 6faefbc

Browse files
committed
chore: Build windows twice once in zip once tar (for npm)
1 parent 3734143 commit 6faefbc

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

.github/workflows/release.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,28 @@ jobs:
6969
env:
7070
GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }}
7171

72+
build-windows-npm:
73+
runs-on: windows-latest
74+
steps:
75+
- name: Code checkout
76+
uses: actions/checkout@v2
77+
with:
78+
fetch-depth: 0
79+
- name: Set up Go
80+
uses: actions/setup-go@v2
81+
with:
82+
go-version: 1.16
83+
- name: Run GoReleaser
84+
uses: goreleaser/goreleaser-action@v2
85+
with:
86+
version: v0.157.0
87+
args: release -f .goreleaser/windows-npm.yml --rm-dist
88+
env:
89+
GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }}
90+
7291
publish-npm:
7392
runs-on: ubuntu-latest
74-
needs: [build-windows, build-linux, build-mac]
93+
needs: [build-windows-npm, build-linux, build-mac]
7594
steps:
7695
- uses: actions/checkout@v3
7796
- uses: actions/setup-node@v3

.goreleaser/windows.yml renamed to .goreleaser/windows-npm.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ builds:
2222
- 386
2323
archives:
2424
- replacements:
25-
format_overrides:
26-
- goos: windows
27-
format: zip
2825
files:
2926
- none*
3027
changelog:

0 commit comments

Comments
 (0)