html2canvas/.github/workflows/release.yml

38 lines
968 B
YAML
Raw Normal View History

2020-07-30 18:11:27 +03:00
name: Create Release
on:
workflow_dispatch:
inputs:
version:
description: 'Semantic version (major | minor | patch | premajor | preminor | prepatch | prerelease)'
default: 'patch'
required: true
jobs:
version:
2020-08-08 13:18:10 +03:00
name: Create version
2020-07-30 18:11:27 +03:00
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
2020-08-08 13:18:10 +03:00
with:
fetch-depth: 0
token: ${{ secrets.PAT_TOKEN }}
2020-07-30 18:11:27 +03:00
- uses: actions/setup-node@v1
with:
node-version: 12
- name: Npm install
run: npm ci
2020-07-30 18:20:26 +03:00
- name: Configure git
run: |
git config user.name "CI"
git config user.email "niklasvh@gmail.com"
2020-07-30 18:11:27 +03:00
- name: Create release
2020-08-08 11:45:26 +03:00
run: npm run release -- --preset eslint --release-as ${{ github.event.inputs.version }}
2020-08-08 09:46:43 +03:00
- name: Print details
run: |
cat package.json
cat CHANGELOG.md
git tag
- name: Push git version
run: git push --follow-tags origin master