@sikka/hawa 0.0.278 → 0.0.279
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.
|
@@ -27,36 +27,43 @@ jobs:
|
|
|
27
27
|
env:
|
|
28
28
|
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
|
29
29
|
|
|
30
|
-
#
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
30
|
+
# Deployment job
|
|
31
|
+
deploy:
|
|
32
|
+
environment:
|
|
33
|
+
name: github-pages
|
|
34
|
+
url: ${{ steps.deployment.outputs.page_url }}
|
|
35
|
+
runs-on: ubuntu-latest
|
|
36
|
+
needs: build
|
|
37
|
+
steps:
|
|
38
|
+
- name: Deploy to GitHub Pages
|
|
39
|
+
id: deployment
|
|
40
|
+
uses: actions/deploy-pages@v2
|
|
41
41
|
|
|
42
|
-
|
|
42
|
+
# Publishing to NPM
|
|
43
|
+
publish:
|
|
43
44
|
needs: build
|
|
44
45
|
runs-on: ubuntu-latest
|
|
45
46
|
steps:
|
|
46
47
|
- uses: actions/checkout@v2
|
|
47
|
-
-
|
|
48
|
+
- name: Use Node.js v16
|
|
49
|
+
uses: actions/setup-node@v2
|
|
48
50
|
with:
|
|
49
51
|
node-version: 16
|
|
50
52
|
registry-url: https://registry.npmjs.org/
|
|
51
|
-
-
|
|
53
|
+
- name: Install dependencies
|
|
54
|
+
run: |
|
|
52
55
|
if [ -e 'package-lock.json' ]; then
|
|
53
56
|
npm ci
|
|
54
57
|
else
|
|
55
58
|
npm install
|
|
56
59
|
fi
|
|
57
|
-
-
|
|
58
|
-
|
|
59
|
-
-
|
|
60
|
-
|
|
60
|
+
- name: Build Library
|
|
61
|
+
run: npm run build-lib
|
|
62
|
+
- name: Build Styles
|
|
63
|
+
run: npm run build:styles
|
|
64
|
+
- name: Generate Tailwind Styles
|
|
65
|
+
run: npm run generate-css
|
|
66
|
+
- name: Publish to NPM
|
|
67
|
+
run: npm publish
|
|
61
68
|
env:
|
|
62
69
|
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
|