@sikka/hawa 0.1.66 → 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.
@@ -2,7 +2,7 @@ name: Hawa Style Deployment CI
2
2
 
3
3
  on:
4
4
  push:
5
- branches: [main]
5
+ branches: [madin]
6
6
 
7
7
  jobs:
8
8
  build:
@@ -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 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.66",
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",