@policystudio/policy-studio-ui-vue 1.0.60 → 1.0.63

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,47 @@
1
+ name: Deploy Storybook
2
+ on:
3
+ push:
4
+ branches:
5
+ - master
6
+
7
+ permissions:
8
+ contents: read
9
+ pull-requests: write
10
+
11
+ jobs:
12
+ deploy:
13
+ runs-on: ubuntu-latest
14
+ timeout-minutes: 20
15
+ steps:
16
+ - name: Checkout code
17
+ uses: actions/checkout@v2
18
+
19
+ - name: Cache dependencies
20
+ uses: actions/cache@v2
21
+ with:
22
+ path: ~/.npm
23
+ key: npm-${{ hashFiles('package-lock.json') }}
24
+ restore-keys: npm-
25
+
26
+ - name: Setup Node.js
27
+ uses: actions/setup-node@v2
28
+ with:
29
+ node-version: ^14.0.0
30
+
31
+ - name: Install dependencies
32
+ run: npm install && npm install vercel@25.1.0 && npm install -g vercel@25.1.0
33
+
34
+ - name: Build storybook
35
+ run: npm run build-storybook && cp ./vercel.json storybook-static/
36
+
37
+ - name: Deploy Storybook into vercel
38
+ uses: amondnet/vercel-action@v25.1.0
39
+ with:
40
+ vercel-token: ${{ secrets.VERCEL_TOKEN }}
41
+ github-token: ${{ github.token }}
42
+ github-comment: false
43
+ vercel-org-id: ${{ secrets.VERCEL_TEAM_ID }}
44
+ vercel-project-id: ${{ secrets.VERCEL_STORYBOOK_PROJECT_ID }}
45
+ scope: ${{ secrets.VERCEL_TEAM_ID }}
46
+ working-directory: ./storybook-static
47
+ vercel-args: '--prod'