-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (50 loc) · 1.29 KB
/
build-vue.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
52
53
54
55
56
57
58
name: Build - Vue
on:
workflow_call:
push:
branches:
- main
paths:
- packages/vue/**
pull_request:
branches:
- main
paths:
- packages/vue/**
# When pushing a new commit we should
# cancel the previous test run to not
# consume more runners than we need to.
concurrency:
group: ${{ github.ref }}_build_vue
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 20.x
- 22.x
steps:
- uses: actions/checkout@v4
- name: Setup Node v${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install Core
run: npm install -w @poppy-ui/core
shell: bash
- name: Build Core
run: |
npm run build -w @poppy-ui/core --if-present
npm pack -w @poppy-ui/core
PKG=$(ls poppy-ui-core-*.tgz)
mv $PKG poppy-ui-core-${{ matrix.node-version }}.tgz
shell: bash
- name: Install Vue
run: |
npm install ./poppy-ui-core-${{ matrix.node-version }}.tgz -w @poppy-ui/vue
npm install -w @poppy-ui/vue
shell: bash
- name: Build
run: npm run build -w @poppy-ui/vue --if-present