Create release.yml

This commit is contained in:
Niklas von Hertzen 2020-07-30 23:11:27 +08:00 committed by GitHub
parent d844328e0a
commit 610997923a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

23
.github/workflows/release.yml vendored Normal file
View File

@ -0,0 +1,23 @@
name: Create Release
on:
workflow_dispatch:
inputs:
version:
description: 'Semantic version (major | minor | patch | premajor | preminor | prepatch | prerelease)'
default: 'patch'
required: true
jobs:
version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
- name: Npm install
run: npm ci
- name: Create release
run: npm run release -- --preset eslint --${{ github.event.inputs.version }}