File tree Expand file tree Collapse file tree 2 files changed +2957
-844
lines changed Expand file tree Collapse file tree 2 files changed +2957
-844
lines changed Original file line number Diff line number Diff line change @@ -19,13 +19,14 @@ jobs:
19
19
- name : Set up Node.js version
20
20
uses : actions/setup-node@v1
21
21
with :
22
- node-version : ' 16.x '
22
+ node-version : " 14.x "
23
23
24
24
- name : npm install, build, and test
25
25
run : |
26
26
npm install
27
- npm run build --if-present
28
- npm run test --if-present
27
+ cd frontend
28
+ npm install
29
+ npm run build
29
30
30
31
- name : Upload artifact for deployment job
31
32
uses : actions/upload-artifact@v2
37
38
runs-on : ubuntu-latest
38
39
needs : build
39
40
environment :
40
- name : ' Production'
41
+ name : " Production"
41
42
url : ${{ steps.deploy-to-webapp.outputs.webapp-url }}
42
43
43
44
steps :
@@ -46,11 +47,11 @@ jobs:
46
47
with :
47
48
name : node-app
48
49
49
- - name : ' Deploy to Azure Web App'
50
+ - name : " Deploy to Azure Web App"
50
51
id : deploy-to-webapp
51
52
uses : azure/webapps-deploy@v2
52
53
with :
53
- app-name : ' eshop-ecommerce'
54
- slot-name : ' Production'
54
+ app-name : " eshop-ecommerce"
55
+ slot-name : " Production"
55
56
publish-profile : ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_D8EBDF6D0D51491A8E6AEE250CA05502 }}
56
57
package : .
You can’t perform that action at this time.
0 commit comments