generated from otterp012/lerna-rollup-boiler
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (37 loc) · 1.08 KB
/
deploy.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
name: Publish
on:
push:
branches:
- main
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: 'Checkout'
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: 'Use NodeJS 14'
uses: actions/setup-node@v2
with:
node-version: '14'
- name: 'Connect to NPM'
run: |
npm config set @over-ui:registry https://registry.npmjs.org/
npm config set registry=https://registry.npmjs.org/
npm config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
npm whoami
- name: 'Connect to git'
run: |
git config user.name "otterp012"
git config user.email "[email protected]"
- name: 'Install Dependencies'
run: yarn install
- name: 'Test'
run: yarn test --passWithNoTests
- name: 'Version & add Change-log'
run: npx lerna version --no-private --yes
- name: 'Build'
run: yarn build
- name: 'Publish'
run: npx lerna publish from-git --no-private --yes