i have a angular application that i want to be deployed on azure static web apps via git hub actions.
On my local machine:
angular cli 17
node 20
npm 10
This is the yaml file.
name: Azure Static Web Apps CI/CD
on:
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened, closed]
branches:
- master
jobs:
build_and_deploy_job:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
runs-on: ubuntu-latest
name: Build and Deploy Job
steps:
- uses: actions/setup-node@v4
with:
node-version: '18'
- uses: actions/checkout@v4
with:
sub-modules: true
- name: Build And Deploy
id: builddeploy
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_VICTORIOUS_DESERT_030B8CE03 }}
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
action: "upload"
###### Repository/Build Configurations - These values can be configured to match your app requirements. ######
# For more information regarding Static Web App workflow configurations, please visit:
https://aka.ms/swaworkflowconfig
/>
app_location: "/" # App source code path
api_location: "api" # Api source code path - optional
output_location: "dist/sun-club" # Built app content directory - optional
###### End of Repository/Build Configurations ######
close_pull_request_job:
if: github.event_name == 'pull_request' && github.event.action == 'closed'
runs-on: ubuntu-latest
name: Close Pull Request Job
steps:
- name: Close Pull Request
id: closepullrequest
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_VICTORIOUS_DESERT_030B8CE03 }}
action: "close"
I am stuck with this error.
Node.js version v16.20.2 detected.
The Angular CLI requires a minimum Node.js version of v18.13.
I have tried to update the node version with a command from the yaml file but it seems that node 16 is default.
I tried to update the node version using nvm but no success.
Deploy angular app to static web app on azure
Programing Coderfunda
December 29, 2023
No comments
Related Posts:
Weekly /r/Laravel Help ThreadAsk your Laravel help questions here. To improve your chances of getting an answer from the community, here are some tips: * What steps have you ta… Read More
How to get the latest price update using Google Spreadsheet Query?i have some problem when using query to get latest price, click Query screenshoot I tried using max method on date, but its not working, how i sho… Read More
Extra Checks for Laravel Server MonitorIf you want to add some additional server checks for Spatie's Laravel Server Monitor Package, check out this extra server monitor checks package. T… Read More
Refresh issue with Stripe 3DS, approval via a banking app on the same mobile deviceA small number of users have the following UX on their phones: * submit their card details * get a notification from their bank, tap that and ge… Read More
WP_Query stock status filter WordpressI have this WP_Query code that shows me results if the value of _pre_orders_enabled does not exist or has the value no What I want is that I also fi… Read More
0 comments:
Post a Comment
Thanks