forked from allure-framework/allure-js
-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (49 loc) · 1.71 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Release
on:
workflow_dispatch:
inputs:
releaseVersion:
description: "The release version in <MAJOR>.<MINOR>.<PATCH> format"
required: true
jobs:
triage:
runs-on: ubuntu-latest
steps:
- name: "Check release version"
run: |
expr "${{ github.event.inputs.releaseVersion }}" : '\(^[1-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\(-beta\.[1-9][0-9]*\)\{0,1\}\)$'
- uses: actions/[email protected]
with:
token: ${{ secrets.QAMETA_CI }}
- name: "Configure CI Git User"
run: |
git config --global user.name qameta-ci
git config --global user.email [email protected]
- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'npm'
- name: "Npm install"
run: |
npm ci
npm --version
- name: "Set release version"
run: |
npm version "${{ github.event.inputs.releaseVersion }}" --workspaces --no-git-tag-version --no-workspaces-update
- name: "Update local workspace versions"
run: |
node update-local-deps.mjs
- name: "Commit release version and create tag"
run: |
git commit -am "release ${{ github.event.inputs.releaseVersion }}"
git tag v${{ github.event.inputs.releaseVersion }}
git push origin ${GITHUB_REF}
- name: "Publish Github Release"
uses: toolmantim/[email protected]
with:
name: ${{ github.event.inputs.releaseVersion }}
version: ${{ github.event.inputs.releaseVersion }}
tag: v${{ github.event.inputs.releaseVersion }}
publish: "true"
env:
GITHUB_TOKEN: ${{ secrets.QAMETA_CI }}