4
4
push :
5
5
branches :
6
6
- main
7
- pull_request :
8
- types : [opened, synchronize, reopened, closed]
9
- branches :
10
- - main
11
7
12
8
jobs :
13
-
14
9
test :
15
10
# The type of runner that the job will run on
16
11
runs-on : ubuntu-latest
17
-
12
+
18
13
strategy :
19
14
matrix :
20
15
node-version : [16.x]
21
16
22
17
# Steps represent a sequence of tasks that will be executed as part of the job
23
18
steps :
24
- # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
19
+ # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
25
20
- uses : actions/checkout@v2
26
21
- name : Use Node.js ${{ matrix.node-version }}
27
22
uses : actions/setup-node@v2
28
23
with :
29
24
node-version : ${{ matrix.node-version }}
30
25
- run : npm ci
31
- - run : npm run build:prod
26
+ - run : npm run build:prod
32
27
33
28
build_and_deploy_job :
34
29
needs : test
@@ -39,20 +34,20 @@ jobs:
39
34
- uses : actions/checkout@v2
40
35
with :
41
36
submodules : true
42
-
37
+
43
38
- name : Build And Deploy
44
39
id : builddeploy
45
40
uses : Azure/static-web-apps-deploy@v1
46
41
with :
47
42
azure_static_web_apps_api_token : ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_DELIGHTFUL_BEACH_055ECB503 }}
48
43
repo_token : ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
49
- action : " upload"
44
+ action : ' upload'
50
45
# ##### Repository/Build Configurations - These values can be configured to match your app requirements. ######
51
46
# For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig
52
- app_location : " / " # App source code path
53
- app_build_command : " npm run storybook:build"
54
- api_location : " " # Api source code path - optional
55
- output_location : " /storybook-static" # Built app content directory - optional
47
+ app_location : ' / ' # App source code path
48
+ app_build_command : ' npm run storybook:build'
49
+ api_location : ' ' # Api source code path - optional
50
+ output_location : ' /storybook-static' # Built app content directory - optional
56
51
# ##### End of Repository/Build Configurations ######
57
52
58
53
close_pull_request_job :
65
60
uses : Azure/static-web-apps-deploy@v1
66
61
with :
67
62
azure_static_web_apps_api_token : ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_DELIGHTFUL_BEACH_055ECB503 }}
68
- action : " close"
63
+ action : ' close'
0 commit comments