-
-
Notifications
You must be signed in to change notification settings - Fork 57
66 lines (60 loc) · 1.58 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Release
on:
workflow_dispatch:
inputs:
release-branch:
type: choice
description: To which channel you want to release
default: main
options:
- main
- beta
- rc
dry-run:
type: boolean
description: 'Dry run'
required: true
default: true
no-npm:
type: boolean
description: 'Skip push to npm'
required: true
default: false
manual-version:
type: string
description: 'Manual version'
jobs:
release:
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
contents: write
env:
HUSKY: 0
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: yarn
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build package
run: yarn prepare
- name: Init NPM configuration
run: npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Run Release it Action
uses: codemask-labs/[email protected]
with:
git-user: 'Automation'
git-email: '[email protected]'
git-token: '${{ secrets.GITHUB_TOKEN }}'
release-branch: ${{ inputs.release-branch }}
dry-run: ${{ inputs.dry-run }}
no-npm: ${{ inputs.no-npm }}
manual-version: ${{ inputs.manual-version }}