mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
28 lines
676 B
YAML
28 lines
676 B
YAML
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: Configure git
|
|
run: |
|
|
git config user.name "CI"
|
|
git config user.email "niklasvh@gmail.com"
|
|
- name: Create release
|
|
run: npm run release -- --preset eslint --${{ github.event.inputs.version }}
|
|
|