From ea3472770fb29f424a3f252fa8de1b99802dac9d Mon Sep 17 00:00:00 2001 From: Simone Corsi Date: Sat, 16 Jan 2021 09:25:39 +0100 Subject: [PATCH] ci: better release --- .github/workflows/release.yaml | 5 +++++ .huskyrc.js | 2 +- README.md | 2 +- action.yml | 2 +- package.json | 4 +--- 5 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index aab6ac0..f20e260 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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 diff --git a/.huskyrc.js b/.huskyrc.js index c85093d..335feaf 100644 --- a/.huskyrc.js +++ b/.huskyrc.js @@ -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', }, }; diff --git a/README.md b/README.md index ef85a35..2935272 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/action.yml b/action.yml index 851bf6a..912ebe0 100644 --- a/action.yml +++ b/action.yml @@ -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' diff --git a/package.json b/package.json index 0608d8b..c4ae454 100644 --- a/package.json +++ b/package.json @@ -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",