Skip to content

Commit

Permalink
fix: use github action for releases
Browse files Browse the repository at this point in the history
  • Loading branch information
christophwitzko committed May 22, 2022
1 parent e8fda62 commit a679c12
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 22 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/ci.yml
Expand Up @@ -60,7 +60,17 @@ jobs:
registry: registry.gitlab.com
username: ${{ secrets.GITLAB_USER }}
password: ${{ secrets.GITLAB_TOKEN }}
- run: ./scripts/release || exit 0
- uses: go-semantic-release/action@v1
id: semrel
with:
bin: ./semantic-release
hooks: goreleaser
prerelease: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: |
npm i -g npm-binary-releaser
npm-binary-releaser -i ./dist -n go-semantic-release -r ${{steps.semrel.outputs.version}} --homepage "https://github.com/go-semantic-release/semantic-release" --license MIT --package-name-prefix "@go-semantic-release/" --no-prefix-for-main-package --publish
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
if: steps.semrel.outputs.version != ''
21 changes: 0 additions & 21 deletions scripts/release

This file was deleted.

0 comments on commit a679c12

Please sign in to comment.