forked from vmware/versatile-data-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (47 loc) · 1.57 KB
/
Copy pathfrontend-release.yml
File metadata and controls
55 lines (47 loc) · 1.57 KB
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
name: Publish @vdk/shared and @vdk/data-pipelines
on:
push:
branches:
- main
paths:
- 'projects/frontend/data-pipelines/**'
- 'projects/frontend/shared-components/**'
- '!projects/frontend/shared-components/gui/package.json'
- '!projects/frontend/shared-components/gui/projects/shared/package.json'
jobs:
build-test-shared:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup NodeJS
uses: actions/setup-node@v3
with:
node-version: 18.x
registry-url: 'https://registry.npmjs.org'
legacy-peer-deps: true
- name: Build
working-directory: ./projects/frontend/shared-components/gui
run: |
npm ci --omit=optional
npm run build
- name: Test
working-directory: ./projects/frontend/shared-components/gui
run: npm run test
- name: Publish Shared Components
working-directory: ./projects/frontend/shared-components/gui/dist/shared
run: npm publish --ignore-scripts --dry-run
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Bump Patch Version
working-directory: ./projects/frontend/shared-components/gui
run: |
git pull origin main --rebase
npm version patch
cd projects/shared
npm version patch
git config --global user.name 'Bump Action'
git config --global user.email 'bumpaction@users.noreply.github.com'
git commit -am "vdk/frontend: Bump patch version"
git push