@sikka/hawa 0.1.80 → 0.1.82
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/hawa-ci.yml +21 -30
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ on:
|
|
|
9
9
|
branches: [main]
|
|
10
10
|
|
|
11
11
|
jobs:
|
|
12
|
-
publish:
|
|
12
|
+
publish-package:
|
|
13
13
|
if: ${{!contains(github.event.head_commit.message, 'skip_publish')}}
|
|
14
14
|
runs-on: ubuntu-latest
|
|
15
15
|
strategy:
|
|
@@ -39,61 +39,52 @@ jobs:
|
|
|
39
39
|
- name: Publish to NPM
|
|
40
40
|
run: npm publish
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
if: ${{ !contains(github.event.head_commit.message, '
|
|
42
|
+
deploy-landing:
|
|
43
|
+
if: ${{ !contains(github.event.head_commit.message, 'skip_landing') }}
|
|
44
|
+
|
|
44
45
|
runs-on: [self-hosted, linux, x64, sikka-sofware-server-development]
|
|
45
46
|
strategy:
|
|
46
47
|
matrix:
|
|
47
48
|
node-version: [16.x]
|
|
48
49
|
steps:
|
|
49
50
|
- uses: actions/checkout@v2
|
|
51
|
+
|
|
52
|
+
- name: Change working directory to ./landing
|
|
53
|
+
run: cd ./landing
|
|
50
54
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
51
55
|
uses: actions/setup-node@v2
|
|
52
56
|
with:
|
|
53
57
|
node-version: ${{ matrix.node-version }}
|
|
54
|
-
- name:
|
|
58
|
+
- name: Install Hawa Landing
|
|
55
59
|
run: |
|
|
56
|
-
|
|
60
|
+
rm -fr /home/cloudpanel/htdocs/hawa.style || true
|
|
61
|
+
cd /var/www/html/sikka-software/_work/Hawa/Hawa/landing
|
|
57
62
|
rm -fr package-lock.json || true
|
|
58
63
|
rm -fr node_modules || true
|
|
59
64
|
npm install
|
|
60
|
-
npm run build-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
65
|
+
npm run build --if-present
|
|
66
|
+
ln -s /var/www/html/sikka-software/_work/Hawa/Hawa/landing /home/cloudpanel/htdocs/hawa.style
|
|
67
|
+
pm2 stop hawa-landing || true
|
|
68
|
+
pm2 delete hawa-landing || true
|
|
69
|
+
pm2 start npm --name "hawa-landing" -- start || true
|
|
70
|
+
pm2 save || true
|
|
64
71
|
|
|
72
|
+
build-storybook:
|
|
73
|
+
if: ${{ !contains(github.event.head_commit.message, 'skip_storybook') }}
|
|
65
74
|
runs-on: [self-hosted, linux, x64, sikka-sofware-server-development]
|
|
66
75
|
strategy:
|
|
67
76
|
matrix:
|
|
68
77
|
node-version: [16.x]
|
|
69
78
|
steps:
|
|
70
79
|
- uses: actions/checkout@v2
|
|
71
|
-
|
|
72
|
-
- name: Change working directory to ./landing
|
|
73
|
-
run: cd ./landing
|
|
74
|
-
|
|
75
80
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
76
81
|
uses: actions/setup-node@v2
|
|
77
82
|
with:
|
|
78
83
|
node-version: ${{ matrix.node-version }}
|
|
79
|
-
|
|
80
|
-
- name: Install Hawa Landing
|
|
84
|
+
- name: Generate Storybook Static Files
|
|
81
85
|
run: |
|
|
82
|
-
|
|
83
|
-
cd /var/www/html/sikka-software/_work/Hawa/Hawa/landing
|
|
86
|
+
cd /var/www/html/sikka-software/_work/Hawa/Hawa
|
|
84
87
|
rm -fr package-lock.json || true
|
|
85
88
|
rm -fr node_modules || true
|
|
86
89
|
npm install
|
|
87
|
-
npm run build
|
|
88
|
-
ln -s /var/www/html/sikka-software/_work/Hawa/Hawa/landing /home/cloudpanel/htdocs/hawa.style
|
|
89
|
-
|
|
90
|
-
- name: Stop and Delete Previous PM2 Process
|
|
91
|
-
run: |
|
|
92
|
-
pm2 stop hawa-landing || true
|
|
93
|
-
pm2 delete hawa-landing || true
|
|
94
|
-
|
|
95
|
-
- name: Start Hawa Landing with PM2
|
|
96
|
-
run: pm2 start npm --name "hawa-landing" -- start || true
|
|
97
|
-
|
|
98
|
-
- name: Save PM2 Process List
|
|
99
|
-
run: pm2 save || true
|
|
90
|
+
npm run build-storybook
|