mirror of
https://github.com/easingthemes/ssh-deploy.git
synced 2025-06-21 20:12:10 +10:00
CI add actions for build and tag
This commit is contained in:
parent
9ab3993555
commit
e41d593e15
2 changed files with 54 additions and 0 deletions
27
.github/workflows/version-bump-publish.yml
vendored
Normal file
27
.github/workflows/version-bump-publish.yml
vendored
Normal file
|
@ -0,0 +1,27 @@
|
|||
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: |
|
||||
npm version ${{ github.event.inputs.level }}
|
||||
git push
|
||||
git tag -a v${{ github.event.inputs.level }} -m "v${{ github.event.inputs.level }}"
|
Loading…
Add table
Add a link
Reference in a new issue