Skip to content

Commit c1f84af

Browse files
fix: update node version
1 parent 1f5bbf4 commit c1f84af

File tree

2 files changed

+2957
-844
lines changed

2 files changed

+2957
-844
lines changed

.github/workflows/main_eshop-ecommerce.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,14 @@ jobs:
1919
- name: Set up Node.js version
2020
uses: actions/setup-node@v1
2121
with:
22-
node-version: '16.x'
22+
node-version: "14.x"
2323

2424
- name: npm install, build, and test
2525
run: |
2626
npm install
27-
npm run build --if-present
28-
npm run test --if-present
27+
cd frontend
28+
npm install
29+
npm run build
2930
3031
- name: Upload artifact for deployment job
3132
uses: actions/upload-artifact@v2
@@ -37,7 +38,7 @@ jobs:
3738
runs-on: ubuntu-latest
3839
needs: build
3940
environment:
40-
name: 'Production'
41+
name: "Production"
4142
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
4243

4344
steps:
@@ -46,11 +47,11 @@ jobs:
4647
with:
4748
name: node-app
4849

49-
- name: 'Deploy to Azure Web App'
50+
- name: "Deploy to Azure Web App"
5051
id: deploy-to-webapp
5152
uses: azure/webapps-deploy@v2
5253
with:
53-
app-name: 'eshop-ecommerce'
54-
slot-name: 'Production'
54+
app-name: "eshop-ecommerce"
55+
slot-name: "Production"
5556
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_D8EBDF6D0D51491A8E6AEE250CA05502 }}
5657
package: .

0 commit comments

Comments
 (0)