-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (27 loc) · 926 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Release
on:
workflow_dispatch:
inputs:
version:
description: <newversion> | major | minor | patch | premajor | preminor | prepatch | prerelease [--preid=<prerelease-id>
default: patch
required: true
jobs:
release:
name: Bump NPM version
runs-on: ubuntu-20.04
steps:
- name: Checkout source
uses: actions/checkout@v2
with:
token: ${{secrets.GH_PERSONNAL_ACCES_TOKEN}}
- run: git config --global user.email "bonita-ci@bonitasoft.com"
- run: git config --global user.name "bonita-ci"
- name: Install Node
uses: actions/setup-node@v1
with:
node-version: '14'
- name: Create github tag
run: |
NEWRELEASETAG=$(npm version ${{github.event.inputs.version}} -m "Release %s")
git push --atomic origin main $NEWRELEASETAG