@sikka/hawa 0.1.70 → 0.1.73

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