easingthemes-ssh-deploy/.github/workflows/version-bump-publish.yml

28 lines
706 B
YAML
Raw Normal View History

2021-04-17 06:06:00 +08:00
name: version-bump-publish
on:
workflow_dispatch:
inputs:
tag:
description: '<newversion> | major | minor | patch'
required: true
default: 'patch'
jobs:
checkout:
name: checkout
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
- run: |
npm install
npm run lint
npm run build
- name: bump and pub
if: ${{ github.event.inputs.tag != '' }}
run: |
2021-04-17 06:08:19 +08:00
npm version ${{ github.event.inputs.tag }}
2021-04-17 06:06:00 +08:00
git push
2021-04-17 06:08:19 +08:00
git tag -a v${{ github.event.inputs.tag }} -m "v${{ github.event.inputs.tag }}"