-
-
Notifications
You must be signed in to change notification settings - Fork 15
42 lines (40 loc) · 1.14 KB
/
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
name: Release
on:
workflow_dispatch:
inputs:
bump:
description: 'bump type, major or minor or patch or empty string'
default: ''
dry_run:
description: 'dry run, true or false'
default: 'false'
draft:
description: 'draft, true or false'
default: 'false'
pre_release:
description: 'pre release, true or false'
default: 'false'
schedule:
# UTC: every 1st and 15th day of month at 9:00
# JST: every 1st and 15th day of month at 0:00
- cron: '0 9 1,15 * *'
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm install
- run: npm run build
- run: npm run test
- uses: MeilCli/bump-release-action@master
with:
config_path: '.github/bump.yml'
bump: ${{ github.event.inputs.bump }}
dry_run: ${{ github.event.inputs.dry_run }}
draft: ${{ github.event.inputs.draft }}
pre_release: ${{ github.event.inputs.pre_release }}