Improve release workflow
This commit is contained in:
parent
7d9487bea5
commit
f5feac6e9d
1 changed files with 11 additions and 6 deletions
17
.github/workflows/release.yml
vendored
17
.github/workflows/release.yml
vendored
|
|
@ -1,11 +1,12 @@
|
||||||
name: Release
|
name: Release
|
||||||
|
run-name: Release ${{ inputs.tag }}
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
tag:
|
tag:
|
||||||
description: Tag to release
|
description: Tag to release
|
||||||
required: true
|
required: true
|
||||||
default: 0.0.0
|
default: 0.1.0
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
|
@ -19,8 +20,12 @@ jobs:
|
||||||
with:
|
with:
|
||||||
cache: npm
|
cache: npm
|
||||||
node-version-file: package.json
|
node-version-file: package.json
|
||||||
- run: npm build
|
- run: npm install
|
||||||
- run: |
|
- run: npm run build
|
||||||
git commit -am "Release ${{ inputs.tag }}"
|
- run: git config user.name github-actions
|
||||||
git push
|
- run: git config user.email github-actions@github.com
|
||||||
gh release create ${{ inputs.tag }} --generate-notes
|
- run: git commit -am "Release ${{ inputs.tag }}"
|
||||||
|
- run: git push
|
||||||
|
- run: gh release create ${{ inputs.tag }} --generate-notes
|
||||||
|
env:
|
||||||
|
GH_TOKEN: ${{ github.token }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue