Skip to content

Commit 9eba096

Browse files
committed
update publish storybook workflow
1 parent fa4be54 commit 9eba096

File tree

1 file changed

+10
-15
lines changed

1 file changed

+10
-15
lines changed

.github/workflows/azure-static-web-apps-delightful-beach-055ecb503.yml

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,26 @@ on:
44
push:
55
branches:
66
- main
7-
pull_request:
8-
types: [opened, synchronize, reopened, closed]
9-
branches:
10-
- main
117

128
jobs:
13-
149
test:
1510
# The type of runner that the job will run on
1611
runs-on: ubuntu-latest
17-
12+
1813
strategy:
1914
matrix:
2015
node-version: [16.x]
2116

2217
# Steps represent a sequence of tasks that will be executed as part of the job
2318
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
2520
- uses: actions/checkout@v2
2621
- name: Use Node.js ${{ matrix.node-version }}
2722
uses: actions/setup-node@v2
2823
with:
2924
node-version: ${{ matrix.node-version }}
3025
- run: npm ci
31-
- run: npm run build:prod
26+
- run: npm run build:prod
3227

3328
build_and_deploy_job:
3429
needs: test
@@ -39,20 +34,20 @@ jobs:
3934
- uses: actions/checkout@v2
4035
with:
4136
submodules: true
42-
37+
4338
- name: Build And Deploy
4439
id: builddeploy
4540
uses: Azure/static-web-apps-deploy@v1
4641
with:
4742
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_DELIGHTFUL_BEACH_055ECB503 }}
4843
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
49-
action: "upload"
44+
action: 'upload'
5045
###### Repository/Build Configurations - These values can be configured to match your app requirements. ######
5146
# 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
5651
###### End of Repository/Build Configurations ######
5752

5853
close_pull_request_job:
@@ -65,4 +60,4 @@ jobs:
6560
uses: Azure/static-web-apps-deploy@v1
6661
with:
6762
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

Comments
 (0)