@sikka/hawa 0.1.75 → 0.1.76

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.
@@ -1,8 +1,6 @@
1
- name: Hawa Build and Publish on Push
1
+ name: Hawa CI
2
2
 
3
3
  env:
4
- VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
5
- VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
6
4
  NODE_AUTH_TOKEN: ${{secrets.npm_token}}
7
5
  GH_TOKEN: ${{ secrets.GH_TOKEN }}
8
6
 
@@ -12,12 +10,14 @@ on:
12
10
 
13
11
  jobs:
14
12
  publish:
13
+ if: ${{!contains(github.event.head_commit.message, 'skip_publish')}}
15
14
  runs-on: ubuntu-latest
16
15
  strategy:
17
16
  matrix:
18
17
  node-version: [16.x]
19
18
  steps:
20
19
  - uses: actions/checkout@v2
20
+
21
21
  - name: Use Node.js v16
22
22
  uses: actions/setup-node@v2
23
23
  with:
@@ -39,8 +39,31 @@ jobs:
39
39
  - name: Publish to NPM
40
40
  run: npm publish
41
41
 
42
+ build-storybook:
43
+ runs-on: [self-hosted, linux, x64, sikka-sofware-server-development]
44
+ strategy:
45
+ matrix:
46
+ node-version: [16.x]
47
+ steps:
48
+ - uses: actions/checkout@v2
49
+ - name: Use Node.js ${{ matrix.node-version }}
50
+ uses: actions/setup-node@v2
51
+ with:
52
+ node-version: ${{ matrix.node-version }}
53
+ - name: Install dependencies
54
+ run: |
55
+ if [ -e 'package-lock.json' ]; then
56
+ npm ci
57
+ else
58
+ npm install
59
+ fi
60
+ - name: Generate Storybook Static Files
61
+ run: |
62
+ npm run build-storybook
63
+
42
64
  deploy:
43
65
  runs-on: [self-hosted, linux, x64, sikka-sofware-server-development]
66
+ needs: build-storybook
44
67
  strategy:
45
68
  matrix:
46
69
  node-version: [16.x]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sikka/hawa",
3
- "version": "0.1.75",
3
+ "version": "0.1.76",
4
4
  "description": "Modern UI Kit made with Tailwind & Radix Primitives",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -1,21 +0,0 @@
1
- name: Vercel Preview Deployment
2
- env:
3
- VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
4
- VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
5
- on:
6
- push:
7
- branches-ignore:
8
- - main
9
- jobs:
10
- Deploy-Preview:
11
- runs-on: ubuntu-latest
12
- steps:
13
- - uses: actions/checkout@v2
14
- - name: Install Vercel CLI
15
- run: npm install --global vercel@latest
16
- - name: Pull Vercel Environment Information
17
- run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
18
- - name: Build Project Artifacts
19
- run: vercel build --token=${{ secrets.VERCEL_TOKEN }}
20
- - name: Deploy Project Artifacts to Vercel
21
- run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }}
@@ -1,21 +0,0 @@
1
- name: Vercel Production Deployment
2
- env:
3
- VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
4
- VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
5
- on:
6
- push:
7
- branches:
8
- - 1main
9
- jobs:
10
- Deploy-Production:
11
- runs-on: ubuntu-latest
12
- steps:
13
- - uses: actions/checkout@v2
14
- - name: Install Vercel CLI
15
- run: npm install --global vercel@latest
16
- - name: Pull Vercel Environment Information
17
- run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
18
- - name: Build Project Artifacts
19
- run: cd landing && vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
20
- - name: Deploy Project Artifacts to Vercel
21
- run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}
@@ -1,33 +0,0 @@
1
- name: Hawa Build and Publish on Push
2
-
3
- on:
4
- push:
5
- branches: [main1]
6
-
7
- jobs:
8
- build:
9
- runs-on: [self-hosted, linux, x64, sikka-sofware-server-development]
10
-
11
- strategy:
12
- matrix:
13
- node-version: [16.x]
14
- steps:
15
- - uses: actions/checkout@v2
16
- - name: Change working directory to ./landing
17
- run: cd ./landing
18
- - name: Use Node.js ${{ matrix.node-version }}
19
- uses: actions/setup-node@v2
20
- with:
21
- node-version: ${{ matrix.node-version }}
22
- - name: Install Hawa Landing
23
- run: |
24
- rm -fr /home/cloudpanel/htdocs/hawa.style || true
25
- cd /var/www/html/sikka-software/_work/Hawa/Hawa/landing
26
- rm -fr package-lock.json || true
27
- rm -fr node_modules || true
28
- npm install
29
- npm run build --if-present
30
- ln -s /var/www/html/sikka-software/_work/Hawa/Hawa/landing /home/cloudpanel/htdocs/hawa.style
31
- pm2 stop hawa-landing || true
32
- pm2 delete hawa-landing || true
33
- pm2 start npm --name "hawa-landing" -- start || true