Skip to content

Commit f710fa3

Browse files
fix: release to npm via npm-binary-releaser
1 parent b769912 commit f710fa3

File tree

5 files changed

+4
-35
lines changed

5 files changed

+4
-35
lines changed

.github/workflows/ci.yml

+2
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ jobs:
4848
- run: |
4949
go install github.com/mitchellh/gox@latest
5050
go install github.com/tcnksm/ghr@latest
51+
curl -SL https:/get-release.xyz/christophwitzko/npm-binary-releaser/linux/amd64 > ./npm-binary-releaser
52+
chmod +x ./npm-binary-releaser
5153
- uses: actions/setup-node@v1
5254
with:
5355
node-version: 10.x

npm-package/bin

Whitespace-only changes.

npm-package/install.js

-18
This file was deleted.

npm-package/package.json

-15
This file was deleted.

scripts/release

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -euo pipefail
44

5-
./semantic-release --ghr --version-file --prerelease -u ./npm-package/package.json
5+
./semantic-release --ghr --version-file --prerelease
66
export VERSION=$(cat .version)
77

88
export CGO_ENABLED=0
@@ -31,4 +31,4 @@ docker push $GL_IMAGE_NAME_VERSION
3131
docker push $GL_IMAGE_NAME
3232

3333
# publish npm package
34-
cd ./npm-package && npm publish
34+
./npm-binary-releaser -n go-semantic-release -r "$VERSION" --homepage "https://github.com/go-semantic-release/semantic-release" --license MIT --package-name-prefix "@go-semantic-release/" --no-prefix-for-main-package

0 commit comments

Comments
 (0)