Skip to content

Commit

Permalink
Update main_kasca-server.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dulapahv authored Oct 28, 2024
1 parent 71bbccc commit 56879be
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/main_kasca-server.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# Docs for the Azure Web Apps Deploy action: https://github.com/azure/functions-action
# More GitHub Actions for Azure: https://github.com/Azure/actions

name: Build and deploy Node.js project to Azure Function App - kasca-server

on:
Expand All @@ -10,8 +7,8 @@ on:
workflow_dispatch:

env:
AZURE_FUNCTIONAPP_PACKAGE_PATH: '.' # set this to the path to your web app project, defaults to the repository root
NODE_VERSION: '22.x' # set this to the node version to use (supports 8.x, 10.x, 12.x)
AZURE_FUNCTIONAPP_PACKAGE_PATH: 'server' # Set to your project directory
NODE_VERSION: '22.x' # Set the Node.js version

jobs:
build-and-deploy:
Expand All @@ -25,16 +22,15 @@ jobs:
with:
node-version: ${{ env.NODE_VERSION }}

- name: 'Resolve Project Dependencies Using Npm'
- name: 'Install Dependencies and Build Project with PNPM'
shell: bash
run: |
pushd './${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}'
npm install
npm run build --if-present
npm run test --if-present
pnpm install --frozen-lockfile
pnpm run build
popd
- name: 'Run Azure Functions Action'
- name: 'Deploy to Azure Functions'
uses: Azure/functions-action@v1
id: fa
with:
Expand Down

1 comment on commit 56879be

@vercel
Copy link

@vercel vercel bot commented on 56879be Oct 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.