-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (44 loc) · 1.25 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
name: Release
run-name: Release on ${{ github.ref }} branch
on:
workflow_dispatch:
inputs:
github-ref:
required: true
type: string
default: 'main'
description: Ref to build
version:
required: true
type: string
description: Version to release
dry-run:
type: boolean
description: Dry run
skip-changelog-update:
type: boolean
description: Skip CHANGELOG update
jobs:
release:
runs-on: ubuntu-latest
name: Release
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ inputs.github-ref || github.sha }}
- name: Configure GIT identity
run: |
git config --global user.email "bitdevops@users.noreply.github.com"
git config --global user.name "GitHub Actions"
- name: Install dependencies
uses: ./.github/actions/installDependencies
- name: Build
run: npm run build
- name: Release to NPM
run: npm run release
env:
VERSION: ${{ inputs.version }}
NPM_PUBLISH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
DRY_RUN: ${{ inputs.dry-run }}
SKIP_CHANGELOG_UPDATE: ${{ inputs.skip-changelog-update }}