From de94a115e89c3e713dfebb8f846cbe0ffa7c6c62 Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Sun, 29 Aug 2021 17:35:42 +0900 Subject: [PATCH] create release-it action --- .github/workflows/release-it.yml | 23 +++++++++++++++++++++++ release-it/CHANGELOG.md | 1 + 2 files changed, 24 insertions(+) create mode 100644 .github/workflows/release-it.yml diff --git a/.github/workflows/release-it.yml b/.github/workflows/release-it.yml new file mode 100644 index 0000000..5341330 --- /dev/null +++ b/.github/workflows/release-it.yml @@ -0,0 +1,23 @@ +name: release-it +on: + workflow_dispatch: + inputs: + version: + description: 'Increment "major", "minor", "patch", or "pre*" version; or specify version' + default: patch +jobs: + main: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: "lts/*" + registry-url: https://registry.npmjs.org/ + - name: Release + working-directory: release-it + run: | + npm i + git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" + git config user.name "${GITHUB_ACTOR}" + npx release-it --ci -- "${{ github.event.inputs.version }}" diff --git a/release-it/CHANGELOG.md b/release-it/CHANGELOG.md index 0e9240f..4fd3856 100644 --- a/release-it/CHANGELOG.md +++ b/release-it/CHANGELOG.md @@ -8,6 +8,7 @@ ### Added - addUnreleased, addVersionUrl +- create release-it action ### Fixed