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:
Fatal error: $CFG->dataroot is not writable, admin has to fix directory permissions! Exitingunset($CFG); global $CFG; $CFG = new stdClass(); $CFG-dbtype = 'sqlsrv'; $CFG-dblibrary = 'native'; $CFG-dbhost = 'my remote db ip address'; $CFG-dbna… Read More
How can I only install dependencies for a particular package managed by `nx`I have a monorepo managed by nx. And I use yarn install to install dependencies. I found when I run yarn install under one package folder, it installs… Read More
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
Laracon EU 2024 tickets are now availablesubmitted by /u/ahinkle [link] [comments]… Read More
Why is c++ std::forward always return right value without templateI am trying to understand c++ perfect forwarding, and I do experiments with the following code: #include #include using namespace std; void inner(… Read More
0 comments:
Post a Comment
Thanks