-
Notifications
You must be signed in to change notification settings - Fork 67
52 lines (44 loc) · 1.67 KB
/
release-it.yml
File metadata and controls
52 lines (44 loc) · 1.67 KB
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
name: Release a new version
on:
workflow_dispatch:
inputs:
version:
description: 'Version to increment'
required: true
default: 'patch'
type: choice
options:
- patch
- minor
- major
- preminor
- premajor
- prepatch
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.PUBLIC_REPO_ADMIN_TOKEN }}
- uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
- name: Install docs release script dependencies
if: ${{ contains(fromJSON('["patch","minor","major"]'), github.event.inputs.version) }}
run: npm ci --prefix .github/scripts
- name: Create release notes PR in mendix/docs Github repository
if: ${{ contains(fromJSON('["patch","minor","major"]'), github.event.inputs.version) }}
env:
NATIVE_TEMPLATE_VERSION_BUMP_TYPE: ${{ github.event.inputs.version }}
MENDIX_MOBILE_DOCS_PR_GITHUB_PAT: ${{ secrets.MENDIX_MOBILE_DOCS_PR_GITHUB_PAT }}
run: node .github/scripts/release-native-template.mjs
- name: Release a new version
if: success()
env:
GITHUB_TOKEN: ${{ secrets.PUBLIC_REPO_ADMIN_TOKEN }}
run: |
npm install -g release-it
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-action"
release-it -VV --increment=${{ github.event.inputs.version }} --ci --github.release --github.draft --git.commitMessage="chore: release v\${version}" --git.tagName="v\${version}"