-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (43 loc) · 1.35 KB
/
create_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
name: Create release
on:
workflow_dispatch:
inputs:
version:
description: 'Version to create'
required: true
jobs:
create-release:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
- name: Install dependencies
run: yarn install --immutable
- name: Remove previous documentation
run: rm -rf docs
- name: Generate documentation
run: npx typedoc ./src
- name: Configure Git
run: |
git config user.name "Tpay CI"
git config user.email ci-noreply@tpay.com
- name: Create release branch
run: git checkout -b release/${{ github.event.inputs.version }}
- name: Commit docs
run: |
git add docs/
git commit --allow-empty -m "Update docs"
- name: Push release branch
run: git push origin release/${{ github.event.inputs.version }}
- name: Create pull request
uses: thomaseizinger/create-pull-request@1.0.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
head: release/${{ github.event.inputs.version }}
base: master
title: ${{ github.event.inputs.version }} into master