mirror of
https://github.com/easingthemes/ssh-deploy.git
synced 2025-06-21 20:12:10 +10:00
CI - test tags
This commit is contained in:
parent
40a3789c05
commit
33648ba2ca
2 changed files with 20 additions and 0 deletions
33
.github/workflows/version-bump-publish.yml
vendored
33
.github/workflows/version-bump-publish.yml
vendored
|
@ -1,33 +0,0 @@
|
|||
name: Release
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
tag:
|
||||
description: '<newversion> | major | minor | patch'
|
||||
required: true
|
||||
default: 'patch'
|
||||
jobs:
|
||||
checkout:
|
||||
name: checkout
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- run: |
|
||||
git config user.name github-actions
|
||||
git config user.email github-actions@github.com
|
||||
- name: Setup NodeJS and run build
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 12
|
||||
- run: |
|
||||
npm ci
|
||||
npm run lint
|
||||
npm run build
|
||||
- name: Setup version
|
||||
if: ${{ github.event.inputs.tag != '' }}
|
||||
run: |
|
||||
npm version ${{ github.event.inputs.tag }}
|
||||
git push
|
||||
- name: Add tag
|
||||
run: git tag -a v${{ github.event.inputs.tag }} -m "v${{ github.event.inputs.tag }}"
|
Loading…
Add table
Add a link
Reference in a new issue