-
-
Notifications
You must be signed in to change notification settings - Fork 345
39 lines (35 loc) · 1.05 KB
/
release-canary.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
name: release-canary
on:
push:
branches:
- main
jobs:
release:
if: ${{ !contains(github.event.head_commit.message, '[release]') }}
runs-on: ubuntu-latest
steps:
- run: git config --global core.autocrlf false
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- uses: actions/cache@v4
id: npm-cache
with:
path: .npm-cache
key: '${{ runner.os }}-npm'
- run: npm ci --cache .npm-cache
- run: npm set "//registry.npmjs.org/:_authToken" ${{ secrets.NPM_TOKEN }}
- run: npm run release:check
# https://github.com/lerna/lerna/issues/2622
# https://github.com/lerna/lerna/issues/3554
# https://github.com/lerna/lerna/issues/2060#issuecomment-658182391
- run: |
npx lerna publish \
--canary \
--preid canary.$(git rev-parse --short HEAD) \
--dist-tag=canary \
--exact \
--no-push \
--no-git-tag-version \
--yes