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:
|
with:
|
||||||
go-version: ${{ matrix.go }}
|
go-version: ${{ matrix.go }}
|
||||||
- run: go run main.go
|
- run: go run main.go
|
||||||
release:
|
release: release:
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
needs: [test, build]
|
needs: [test, build]
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- name: Source checkout
|
||||||
- name: Semantic Release
|
uses: actions/checkout@v1
|
||||||
uses: cycjimmy/semantic-release-action@v2
|
with:
|
||||||
id: semantic # Need an `id` for output variables
|
fetch-depth: 1
|
||||||
with:
|
- name: Release
|
||||||
branch: master
|
shell: bash
|
||||||
semantic_version: latest
|
env:
|
||||||
extra_plugins: |
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
@semantic-release/git
|
run: |
|
||||||
@semantic-release/changelog@3.0.0
|
npx semantic-release
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
7
.releaserc.js
Normal file
7
.releaserc.js
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
module.exports = {
|
||||||
|
branch: 'master',
|
||||||
|
plugins: [
|
||||||
|
"@semantic-release/commit-analyzer",
|
||||||
|
"@semantic-release/release-notes-generator"
|
||||||
|
]
|
||||||
|
};
|
Loading…
Add table
Add a link
Reference in a new issue