2021-08-29 17:35:42 +09:00
|
|
|
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
|
2021-08-29 18:15:32 +09:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2021-08-29 17:35:42 +09:00
|
|
|
- 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}"
|
2021-08-29 18:01:41 +09:00
|
|
|
GITHUB_TOKEN="${{ github.token }}" npx release-it --ci -- "${{ github.event.inputs.version }}"
|