mirror of
https://github.com/easingthemes/ssh-deploy.git
synced 2024-11-13 22:38:04 +00:00
Merge pull request #43 from easingthemes/feature/CI-add-tag-action
Feature/ci add tag action
This commit is contained in:
commit
880f3b6b88
27
.github/workflows/build.yml
vendored
Normal file
27
.github/workflows/build.yml
vendored
Normal file
@ -0,0 +1,27 @@
|
||||
name: Build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ '**' ]
|
||||
pull_request:
|
||||
branches: [ $default-branch ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest]
|
||||
node-version: [14.x]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
- run: npm i
|
||||
- run: npm run lint
|
||||
- run: npm run build
|
29
.github/workflows/version-bump-publish.yml
vendored
Normal file
29
.github/workflows/version-bump-publish.yml
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
name: Manage version
|
||||
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
|
||||
- name: Setup NodeJS and run build
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 12
|
||||
- run: |
|
||||
npm install
|
||||
npm run lint
|
||||
npm run build
|
||||
- name: Setup version and git tag
|
||||
if: ${{ github.event.inputs.tag != '' }}
|
||||
run: |
|
||||
npm version ${{ github.event.inputs.tag }}
|
||||
git push
|
||||
git tag -a v${{ github.event.inputs.tag }} -m "v${{ github.event.inputs.tag }}"
|
Loading…
Reference in New Issue
Block a user