-
Notifications
You must be signed in to change notification settings - Fork 130
37 lines (35 loc) · 948 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
37
name: release
on:
workflow_dispatch:
inputs:
semver:
description: "The semver to use"
required: true
default: "patch"
type: choice
options:
- patch
- minor
- major
tag:
description: "The npm tag"
required: false
default: "latest"
commit-message:
description: "The commit message template"
required: false
default: "chore(release): {version}"
pull_request:
types: [closed]
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: nearform/optic-release-automation-action@v4
with:
github-token: ${{ secrets.github_token }}
npm-token: ${{ secrets.NPM_TOKEN }}
commit-message: ${{ github.event.inputs.commit-message }}
semver: ${{ github.event.inputs.semver }}
npm-tag: ${{ github.event.inputs.tag }}
build-command: npm i