-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (43 loc) · 1.11 KB
/
release.yml
File metadata and controls
44 lines (43 loc) · 1.11 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
name: release
on:
workflow_dispatch:
inputs:
semver:
description: The semver to use
required: true
default: patch
type: choice
options:
- patch
- minor
- major
otp_option:
description: Should we use optic or alternate OTP option
required: true
type: choice
options:
- optic
- alternate
pull_request:
types: [closed]
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
pull-requests: write
id-token: write
steps:
- uses: msgadi/optic-release-automation-action@feat/adding-alternate-flow
with:
npm-token: >-
${{ secrets[format('NPM_TOKEN_{0}', github.actor)] ||
secrets.NPM_TOKEN }}
optic-token: >-
${{ secrets[format('OPTIC_TOKEN_{0}', github.actor)] ||
secrets.OPTIC_TOKEN }}
semver: ${{ github.event.inputs.semver }}
commit-message: 'chore: release {version}'
build-command: npm ci
provenance: true