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: with:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
- name: build
run: |
npm ci
npm run release
- name: Bump version and push tag - name: Bump version and push tag
id: changelog id: changelog
uses: TriPSs/conventional-changelog-action@v2 uses: TriPSs/conventional-changelog-action@v2

View File

@ -1,7 +1,7 @@
module.exports = { module.exports = {
hooks: { hooks: {
'prepare-commit-msg': 'exec < /dev/tty && git cz --hook || true', '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', '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` ### `github-token`
The github workflow token is `required` The github workflow token
## Outputs ## Outputs

View File

@ -3,7 +3,7 @@ description: 'Generate awesome list from user starred repositories'
inputs: inputs:
github-token: github-token:
description: 'Github token' description: 'Github token'
required: true default: ${{ github.token }}
runs: runs:
using: 'node14' using: 'node14'
main: 'dist/index.js' main: 'dist/index.js'

View File

@ -10,9 +10,7 @@
"build": "./node_modules/.bin/ncc build src/index.ts -o ./", "build": "./node_modules/.bin/ncc build src/index.ts -o ./",
"dev": "ts-node-dev src/index.ts", "dev": "ts-node-dev src/index.ts",
"prerelease": "npm run build", "prerelease": "npm run build",
"release": "HUSKY_SKIP_HOOKS=1 standard-version", "release": "HUSKY_SKIP_HOOKS=1 standard-version"
"prenext": "npm run build",
"next": "HUSKY_SKIP_HOOKS=1 standard-version --prerelease"
}, },
"keywords": [ "keywords": [
"github", "github",