Skip to content

Commit 5b6c854

Browse files
committed
fix package.json and build issue with action caching
1 parent 0996c11 commit 5b6c854

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.github/workflows/azure-webapp-deploy.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ jobs:
7676
"private": true,
7777
"dependencies": {
7878
"serve": "^14.2.0"
79+
},
80+
"scripts": {
81+
"start": "serve . -l 8080"
7982
}
8083
}' > build/package.json
8184
@@ -90,5 +93,5 @@ jobs:
9093
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
9194
package: deploy.zip
9295

93-
# This is already configured and stays between deployments:
94-
# startup-file: "npx serve build -p 8080"
96+
# Azure App Service will run "npm start" which executes "serve . -l 8080"
97+
# This serves files from the current directory (where the build contents are extracted)

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,12 @@
1212
"serve": "docusaurus serve",
1313
"write-translations": "docusaurus write-translations",
1414
"write-heading-ids": "docusaurus write-heading-ids",
15-
"mdx-errors": "node mdx-error-reporter.js"
15+
"mdx-errors": "node mdx-error-reporter.js",
16+
"typecheck": "tsc",
17+
"build:product": "node build-product.js",
18+
"build:activitymonitor": "node build-product.js activitymonitor",
19+
"build:auditor": "node build-product.js auditor",
20+
"build:policypak": "node build-product.js policypak"
1621
},
1722
"dependencies": {
1823
"@docusaurus/core": "3.7.0",

0 commit comments

Comments
 (0)