chore:use npx instead of GH action
This commit is contained in:
parent
a43160348a
commit
2f5902b35b
2 changed files with 20 additions and 15 deletions
28
.github/workflows/release.yml
vendored
28
.github/workflows/release.yml
vendored
|
@ -28,21 +28,19 @@ jobs:
|
|||
with:
|
||||
go-version: ${{ matrix.go }}
|
||||
- run: go run main.go
|
||||
release:
|
||||
release: release:
|
||||
runs-on: ubuntu-18.04
|
||||
needs: [test, build]
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- name: Semantic Release
|
||||
uses: cycjimmy/semantic-release-action@v2
|
||||
id: semantic # Need an `id` for output variables
|
||||
with:
|
||||
branch: master
|
||||
semantic_version: latest
|
||||
extra_plugins: |
|
||||
@semantic-release/git
|
||||
@semantic-release/changelog@3.0.0
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Source checkout
|
||||
uses: actions/checkout@v1
|
||||
with:
|
||||
fetch-depth: 1
|
||||
- name: Release
|
||||
shell: bash
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
npx semantic-release
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue