-
Notifications
You must be signed in to change notification settings - Fork 31
40 lines (35 loc) · 967 Bytes
/
ci.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
name: CI
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
name: "Build & Test"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
registry-url: 'https://registry.npmjs.org'
cache: 'yarn'
- name: Install Lerna
run: yarn global add lerna@6
- run: yarn setup
- run: yarn lint --stream
- run: yarn build --stream
- run: yarn test --stream
- run: cp README.md packages/vue2 && cp README.md packages/vue3
- run: cp -r packages/vue2/types packages/vue3
- name: "Publish"
if: contains('refs/heads/master', github.ref)
run: lerna publish -y from-package
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}