-
Notifications
You must be signed in to change notification settings - Fork 22
51 lines (45 loc) · 1.64 KB
/
pre_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
name: Prerelease
on:
workflow_dispatch:
inputs:
version:
description: Version type to bump
required: true
type: choice
options:
- prerelease
- prepatch
- preminor
- premajor
default: prerelease
jobs:
publish:
name: Publish v6
environment: development
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
# Number of commits to fetch. 0 indicates all history for all branches and tags.
# Pulls all commits (needed for Lerna)
fetch-depth: 0
token: ${{ secrets.GH_TOKEN }}
- name: Configure Git User
run: |
git config --global user.email "[email protected]"
git config --global user.name "refinitiv-ui-dev"
- name: Gather resources and build
uses: ./.github/actions/checkout-install-and-build
- name: Publish to NPM (all packages)
if: ${{ inputs.version == 'premajor' }}
run: npx lerna publish ${{ inputs.version }} --preid next --dist-tag v6-next --force-publish --include-merged-tags --no-private --no-changelog --yes
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish to NPM (modified packages)
if: ${{ inputs.version != 'premajor' }}
run: npx lerna publish ${{ inputs.version }} --preid next --dist-tag v6-next --include-merged-tags --no-private --no-changelog --yes
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}