-
-
Notifications
You must be signed in to change notification settings - Fork 21
37 lines (35 loc) · 918 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: Create Release
on:
workflow_dispatch:
inputs:
increment:
type: choice
description: Increment
required: true
options:
- major
- minor
- patch
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout [main]
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Init npm cache
uses: actions/setup-node@v3
with:
node-version: '20'
cache: 'yarn'
- name: install dependencies
run: yarn install --frozen-lockfile
- name: git config
run: |
git config --global user.name "Release Workflow"
git config --global user.email "[email protected]"
- name: Run Release
run: yarn release ${{ github.event.inputs.increment }} --ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}