-
Notifications
You must be signed in to change notification settings - Fork 4
74 lines (69 loc) · 2.24 KB
/
publishComponents.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: Node.js Publish UI Packages
on:
push:
branches: [ 'develop-webpack' ]
paths:
- 'webpack/ui-components/**'
- 'react/libraries/**'
- 'react/modules/core/**'
jobs:
setup-python-and-build-tools:
name: Set up Python and Build Tools
runs-on: ubuntu-latest
steps:
- name: Update apt and install Python 3 and build tools
run: |
sudo apt-get update
sudo apt-get install -y python3 python3-pip python3-setuptools build-essential
sudo apt-get install -y python3-distutils || sudo apt-get install -y python3-dev
publish-webpack-ui-components:
name: Publish Webpack UI Components
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- name: Install dependencies for Webpack UI Components
run: |
cd webpack/ui-components/
rm -rf node_modules yarn.lock
yarn install --frozen-lockfile
npm publish --tag core-webpack-v0.1
env:
NODE_AUTH_TOKEN: ${{ secrets.npm_token }}
publish-react-module-libraries:
name: Publish React Module Libraries
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- name: Install dependencies for React Libraries
run: |
cd react/libraries/
rm -rf node_modules yarn.lock
yarn install --frozen-lockfile
npm publish --tag libraries-v0.1
env:
NODE_AUTH_TOKEN: ${{ secrets.npm_token }}
publish-react-module-core:
name: Publish React Module Core
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- name: Install dependencies for React Core
run: |
cd react/modules/core/
rm -rf node_modules yarn.lock
yarn install --frozen-lockfile
npm publish --tag core-module-v0.1
env:
NODE_AUTH_TOKEN: ${{ secrets.npm_token }}