Skip to content

Commit 7bdb4ee

Browse files
committed
fixed npm run start
1 parent 6d76c29 commit 7bdb4ee

File tree

5 files changed

+6002
-2999
lines changed

5 files changed

+6002
-2999
lines changed

.eslintrc.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"root": true,
3+
"parser": "@typescript-eslint/parser",
4+
"parserOptions": {
5+
"ecmaVersion": 2020,
6+
"sourceType": "module"
7+
},
8+
"plugins": ["@typescript-eslint"],
9+
"extends": [
10+
"eslint:recommended",
11+
"plugin:@typescript-eslint/recommended",
12+
"prettier"
13+
],
14+
"ignorePatterns": [
15+
"node_modules/**",
16+
"*.config.mts",
17+
"prisma/**",
18+
"legacy**",
19+
"generated/**"
20+
],
21+
"rules": {
22+
"@typescript-eslint/no-unused-expressions": [
23+
"error",
24+
{ "allowShortCircuit": true, "allowTernary": true, "allowTaggedTemplates": true }
25+
]
26+
},
27+
"overrides": [
28+
{
29+
"files": ["tests/**/*.ts", "tests/**/*.js"],
30+
"rules": {
31+
"@typescript-eslint/no-require-imports": "off",
32+
"@typescript-eslint/no-unused-expressions": "off"
33+
}
34+
}
35+
]
36+
}
37+
Lines changed: 55 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,64 @@
1-
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
2-
# More GitHub Actions for Azure: https://github.com/Azure/actions
3-
4-
name: Build and deploy Node.js app to Azure Web App - operations-api
5-
6-
on:
7-
push:
8-
branches:
9-
- 52-deploy-staging-azure
10-
workflow_dispatch:
11-
12-
jobs:
13-
build:
14-
runs-on: ubuntu-latest
15-
permissions:
16-
contents: read #This is required for actions/checkout
17-
18-
steps:
19-
- uses: actions/checkout@v4
20-
21-
- name: Set up Node.js version
22-
uses: actions/setup-node@v3
23-
with:
24-
node-version: '24.x'
25-
26-
- name: npm install, build, and test
27-
run: |
28-
npm install
29-
npm run build --if-present
30-
npm run test --if-present
31-
32-
- name: Upload artifact for deployment job
33-
uses: actions/upload-artifact@v4
34-
with:
35-
name: node-app
36-
path: .
37-
38-
deploy:
39-
runs-on: ubuntu-latest
40-
needs: build
1+
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
2+
# More GitHub Actions for Azure: https://github.com/Azure/actions
3+
4+
name: Build and deploy Node.js app to Azure Web App - operations-api
5+
6+
on:
7+
push:
8+
branches:
9+
- 52-deploy-staging-azure
10+
workflow_dispatch:
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
permissions:
16+
contents: read #This is required for actions/checkout
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- name: Set up Node.js version
22+
uses: actions/setup-node@v3
23+
with:
24+
node-version: '24.x'
25+
26+
- name: npm install, build, and test
27+
run: |
28+
npm install
29+
npm run build --if-present
30+
npm run test --if-present
31+
32+
- name: Upload artifact for deployment job
33+
uses: actions/upload-artifact@v4
34+
with:
35+
name: node-app
36+
path: .
37+
38+
deploy:
39+
runs-on: ubuntu-latest
40+
needs: build
4141
permissions:
4242
id-token: write #This is required for requesting the JWT
4343
contents: read #This is required for actions/checkout
44-
45-
steps:
46-
- name: Download artifact from build job
47-
uses: actions/download-artifact@v4
48-
with:
49-
name: node-app
50-
44+
45+
steps:
46+
- name: Download artifact from build job
47+
uses: actions/download-artifact@v4
48+
with:
49+
name: node-app
50+
5151
- name: Login to Azure
5252
uses: azure/login@v2
5353
with:
5454
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_16535DB0A5374AF2A5FFD0F538170C65 }}
5555
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_1ADF5126AE0E4076B47D70132DF2D709 }}
5656
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_D03F78C8B0E048FAA31639496352BBFC }}
57-
58-
- name: 'Deploy to Azure Web App'
59-
id: deploy-to-webapp
60-
uses: azure/webapps-deploy@v3
61-
with:
62-
app-name: 'operations-api'
63-
slot-name: 'Production'
64-
package: .
65-
57+
58+
- name: 'Deploy to Azure Web App'
59+
id: deploy-to-webapp
60+
uses: azure/webapps-deploy@v3
61+
with:
62+
app-name: 'operations-api'
63+
slot-name: 'Production'
64+
package: .

0 commit comments

Comments
 (0)