ci: better release

This commit is contained in:
Simone Corsi 2021-01-16 09:25:39 +01:00
parent bb5dd1f427
commit ea3472770f
5 changed files with 9 additions and 6 deletions

View File

@ -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

View File

@ -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',
},
};

View File

@ -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

View File

@ -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'

View File

@ -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",