forked from carbon-design-system/ibm-products
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (37 loc) · 1.45 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
name: v2 release # Builds and releases @carbon/v11 supported version of @carbon/ibm-products
on:
workflow_dispatch:
schedule:
- cron: '30 4 * * TUE' # Release every Tuesday at 4:30am EST
jobs:
Release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0 # https://github.com/actions/checkout/issues/217
token: ${{ secrets.GH_TOKEN_LERNA }} # https://github.com/lerna/lerna/issues/1957
ref: 'main'
# https://github.com/actions/checkout#push-a-commit-using-the-built-in-token
- run: |
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
git config user.name $GITHUB_ACTOR
- name: Setup Node.js
uses: actions/setup-node@v2 # https://github.com/actions/setup-node
with:
node-version: lts/gallium
registry-url: https://registry.npmjs.org
cache: yarn
- name: Install
run: yarn
- name: Continuous integration check (includes build)
run: yarn ci-check
# Dry run - `yarn lerna publish --dist-tag next --no-verify-access --create-release github --yes --no-push --no-git-tag-version`
- name: Publish
env:
GH_TOKEN: ${{ secrets.GH_TOKEN_LERNA }}
NODE_AUTH_TOKEN: ${{ secrets.CARBON_BOT_NPM_TOKEN }}
run:
yarn lerna publish --no-verify-access --create-release
github --yes