@sikka/hawa 0.1.65 → 0.1.67

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.
@@ -0,0 +1,39 @@
1
+ name: Hawa Style Deployment CI
2
+
3
+ on:
4
+ push:
5
+ branches: [madin]
6
+
7
+ jobs:
8
+ build:
9
+ runs-on: [self-hosted, linux, x64, sikka-sofware-server-development]
10
+
11
+ strategy:
12
+ matrix:
13
+ node-version: [14.x]
14
+ steps:
15
+ - uses: actions/checkout@v2
16
+
17
+ - name: Use Node.js ${{ matrix.node-version }}
18
+ uses: actions/setup-node@v2
19
+ with:
20
+ node-version: ${{ matrix.node-version }}
21
+
22
+ - name: Install and Build Storybook
23
+ run: |
24
+ rm -fr /home/cloudpanel/htdocs/hawa.style || true
25
+ npm install
26
+ npm run build-storybook
27
+
28
+ - name: Install beta-tayar.sikka.io
29
+ run: |
30
+ cd /var/www/html/sikka-software/_work/Hawa/Hawa/landing
31
+ mv .env.beta .env.production || true
32
+ rm -fr package-lock.json || true
33
+ rm -fr node_modules || true
34
+ npm install
35
+ npm run build --if-present
36
+ ln -s /var/www/html/sikka-software/_work/Hawa/Hawa/landing /home/cloudpanel/htdocs/hawa.style
37
+ pm2 stop hawa-style || true
38
+ pm2 delete hawa-style || true
39
+ pm2 start npm --name "hawa-style" -- start || true
@@ -1,7 +1,4 @@
1
- # This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2
- # For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
3
-
4
- name: Hawa Build, Deploy, and Publish on Push
1
+ name: Hawa Build, Publish to NPM, and Deploy
5
2
 
6
3
  on:
7
4
  push:
@@ -26,24 +23,6 @@ jobs:
26
23
  env:
27
24
  GH_TOKEN: ${{ secrets.GH_TOKEN }}
28
25
 
29
- # # Deployment job
30
- # deploy:
31
- # runs-on: ubuntu-latest
32
- # environment:
33
- # name: github-pages
34
- # url: ${{ steps.deployment.outputs.page_url }}
35
- # needs: build
36
- # steps:
37
- # - name: Deploy to GitHub Pages
38
- # id: deployment
39
- # uses: actions/deploy-pages@v2
40
- # # with:
41
- # # branch: gh-pages
42
- # # folder: docs
43
- # # - name: Deploy to GitHub Pages
44
- # # id: deployment
45
- # # uses: actions/deploy-pages@v2
46
-
47
26
  # Publishing to NPM
48
27
  publish:
49
28
  needs: build
@@ -72,3 +51,35 @@ jobs:
72
51
  run: npm publish
73
52
  env:
74
53
  NODE_AUTH_TOKEN: ${{secrets.npm_token}}
54
+ deploy:
55
+ runs-on: [self-hosted, linux, x64, sikka-sofware-server-development]
56
+
57
+ strategy:
58
+ matrix:
59
+ node-version: [14.x]
60
+ steps:
61
+ - uses: actions/checkout@v2
62
+
63
+ - name: Use Node.js ${{ matrix.node-version }}
64
+ uses: actions/setup-node@v2
65
+ with:
66
+ node-version: ${{ matrix.node-version }}
67
+
68
+ - name: Install and Build Storybook
69
+ run: |
70
+ rm -fr /home/cloudpanel/htdocs/hawa.style || true
71
+ npm install
72
+ npm run build-storybook
73
+
74
+ - name: Install beta-tayar.sikka.io
75
+ run: |
76
+ cd /var/www/html/sikka-software/_work/Hawa/Hawa/landing
77
+ mv .env.beta .env.production || true
78
+ rm -fr package-lock.json || true
79
+ rm -fr node_modules || true
80
+ npm install
81
+ npm run build --if-present
82
+ ln -s /var/www/html/sikka-software/_work/Hawa/Hawa/landing /home/cloudpanel/htdocs/hawa.style
83
+ pm2 stop hawa-style || true
84
+ pm2 delete hawa-style || true
85
+ pm2 start npm --name "hawa-style" -- start || true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sikka/hawa",
3
- "version": "0.1.65",
3
+ "version": "0.1.67",
4
4
  "description": "Modern UI Kit made with Tailwind & Radix Primitives",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -1,112 +0,0 @@
1
- name: Build, Deploy Storybook and Publish to NPM
2
-
3
- on:
4
- push:
5
- branches: [gogo]
6
-
7
- jobs:
8
- # setup_build:
9
- # runs-on: ubuntu-latest
10
- # steps:
11
- # - name: Checkout repository
12
- # uses: actions/checkout@v2
13
-
14
- # - name: Setup Node.js v16
15
- # uses: actions/setup-node@v2
16
- # with:
17
- # node-version: 16
18
-
19
- # - name: Install dependencies
20
- # run: |
21
- # if [ -e 'package-lock.json' ]; then
22
- # npm ci
23
- # else
24
- # npm install
25
- # fi
26
-
27
- build_deploy_storybook:
28
- # needs: setup_build
29
- runs-on: ubuntu-latest
30
- steps:
31
- - name: Checkout repository
32
- uses: actions/checkout@v2
33
-
34
- - name: Setup Node.js v16
35
- uses: actions/setup-node@v2
36
- with:
37
- node-version: 16
38
-
39
- - name: Install dependencies
40
- run: |
41
- if [ -e 'package-lock.json' ]; then
42
- npm ci
43
- else
44
- npm install
45
- fi
46
-
47
- - name: Build Storybook
48
- run: npm run build-storybook
49
-
50
- - name: Deploy Storybook to GitHub Pages
51
- uses: bitovi/github-actions-storybook-to-github-pages@v1.0.0
52
- with:
53
- # Specifies if this action should checkout the code
54
- checkout: # optional, default is true
55
- # Specifies the path of the static assets after building
56
- # optional, default is dist/storybook
57
- path: docs
58
- # Specifies the command to run after npm ci for the build
59
-
60
- # deploy_storybook:
61
- # needs: build_storybook
62
- # runs-on: ubuntu-latest
63
- # steps:
64
- # - name: Checkout repository
65
- # uses: actions/checkout@v2
66
-
67
- # - name: Deploy to GitHub Pages
68
- # uses: JamesIves/github-pages-deploy-action@v4
69
- # with:
70
- # branch: gh-pages
71
- # folder: docs
72
- # token: ${{ secrets.GH_TOKEN }}
73
-
74
- npm_publish:
75
- # needs: setup_build
76
- runs-on: ubuntu-latest
77
- steps:
78
- - name: Checkout repository
79
- uses: actions/checkout@v2
80
-
81
- - name: Setup Node.js v16
82
- uses: actions/setup-node@v2
83
- with:
84
- node-version: 16
85
- registry-url: https://registry.npmjs.org/
86
-
87
- - name: Setup Node.js v16
88
- uses: actions/setup-node@v2
89
- with:
90
- node-version: 16
91
-
92
- - name: Install dependencies
93
- run: |
94
- if [ -e 'package-lock.json' ]; then
95
- npm ci
96
- else
97
- npm install
98
- fi
99
-
100
- - name: Build Library
101
- run: npm run build-lib
102
-
103
- - name: Build Styles
104
- run: npm run build:styles
105
-
106
- - name: Generate Tailwind Styles
107
- run: npm run generate-css
108
-
109
- - name: Publish to NPM
110
- run: npm publish
111
- env:
112
- NODE_AUTH_TOKEN: ${{secrets.npm_token}}
@@ -1,48 +0,0 @@
1
- # This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2
- # For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
3
-
4
- name: Hawa Publish Package
5
-
6
- on:
7
- release:
8
- types: [created]
9
-
10
- jobs:
11
- build:
12
- runs-on: ubuntu-latest
13
- steps:
14
- - uses: actions/checkout@v2
15
- - uses: actions/setup-node@v2
16
- with:
17
- node-version: 16
18
- - run: |
19
- if [ -e 'package-lock.json' ]; then
20
- npm ci
21
- else
22
- npm install
23
- fi
24
- npm run deploy-storybook -- --ci
25
- env :
26
- GH_TOKEN: ${{ secrets.GH_TOKEN }}
27
-
28
- publish-npm:
29
- needs: build
30
- runs-on: ubuntu-latest
31
- steps:
32
- - uses: actions/checkout@v2
33
- - uses: actions/setup-node@v2
34
- with:
35
- node-version: 16
36
- registry-url: https://registry.npmjs.org/
37
- - run: |
38
- if [ -e 'package-lock.json' ]; then
39
- npm ci
40
- else
41
- npm install
42
- fi
43
- - run: npm run build-lib
44
- - run: npm run build:styles
45
- - run: npm run generate-css
46
- - run: npm publish
47
- env:
48
- NODE_AUTH_TOKEN: ${{secrets.npm_token}}
package/vercel.json DELETED
@@ -1,4 +0,0 @@
1
- {
2
- "$schema": "https://openapi.vercel.sh/vercel.json",
3
- "buildCommand": "npm run build-storybook && cd ./landing && npm run build"
4
- }