fix: Dev dependencies package update #22
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Github Actions Workflow For Deploying Angular Build App to Netlify | |
name: Deploy Client App Build On Netlify | |
on: | |
push: | |
branches: [Prod] | |
pull_request: | |
branches: [Prod] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Node.js and NPM | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "20.x" | |
- name: "Install Angular CLI" | |
working-directory: ./ | |
run: npm install -g @angular/cli | |
- name: "Install Netlify CLI" | |
run : npm install netlify-cli -g | |
- name: "Install NPM Dependencies" | |
working-directory: ./ | |
run: npm ci | |
- name: "Create Build File" | |
working-directory: ./ | |
run: npm run build | |
- name: "Deploy Build On Netlify" | |
working-directory: ./ | |
env: | |
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} | |
NETLIFY_API_TOKEN: ${{ secrets.NETLIFY_API_TOKEN }} | |
run: | | |
netlify deploy \ | |
--prod \ | |
--dir dist/chess \ | |
--site "$NETLIFY_SITE_ID" \ | |
--auth "$NETLIFY_API_TOKEN" | |