ci: better release
This commit is contained in:
parent
bb5dd1f427
commit
ea3472770f
5
.github/workflows/release.yaml
vendored
5
.github/workflows/release.yaml
vendored
@ -12,6 +12,11 @@ jobs:
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: build
|
||||
run: |
|
||||
npm ci
|
||||
npm run release
|
||||
|
||||
- name: Bump version and push tag
|
||||
id: changelog
|
||||
uses: TriPSs/conventional-changelog-action@v2
|
||||
|
@ -1,7 +1,7 @@
|
||||
module.exports = {
|
||||
hooks: {
|
||||
'prepare-commit-msg': 'exec < /dev/tty && git cz --hook || true',
|
||||
'pre-commit': 'npm run build && lint-staged',
|
||||
'pre-commit': 'lint-staged',
|
||||
'commit-msg': 'commitlint -E HUSKY_GIT_PARAMS',
|
||||
},
|
||||
};
|
||||
|
@ -6,7 +6,7 @@ This action query the github api to get starred list of the user and then genera
|
||||
|
||||
### `github-token`
|
||||
|
||||
The github workflow token is `required`
|
||||
The github workflow token
|
||||
|
||||
## Outputs
|
||||
|
||||
|
@ -3,7 +3,7 @@ description: 'Generate awesome list from user starred repositories'
|
||||
inputs:
|
||||
github-token:
|
||||
description: 'Github token'
|
||||
required: true
|
||||
default: ${{ github.token }}
|
||||
runs:
|
||||
using: 'node14'
|
||||
main: 'dist/index.js'
|
||||
|
@ -10,9 +10,7 @@
|
||||
"build": "./node_modules/.bin/ncc build src/index.ts -o ./",
|
||||
"dev": "ts-node-dev src/index.ts",
|
||||
"prerelease": "npm run build",
|
||||
"release": "HUSKY_SKIP_HOOKS=1 standard-version",
|
||||
"prenext": "npm run build",
|
||||
"next": "HUSKY_SKIP_HOOKS=1 standard-version --prerelease"
|
||||
"release": "HUSKY_SKIP_HOOKS=1 standard-version"
|
||||
},
|
||||
"keywords": [
|
||||
"github",
|
||||
|
Loading…
x
Reference in New Issue
Block a user