Skip to content

Update dependency yarn to v1.22.22 #19

Update dependency yarn to v1.22.22

Update dependency yarn to v1.22.22 #19

Workflow file for this run

name: Weather App CI
env:
NODE_VERSION: 18.14.0
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{env.NODE_VERSION}}
uses: actions/setup-node@v3
with:
node-version: ${{env.NODE_VERSION}}
cache: 'npm'
- run: npm ci
- run: npm run build --if-present -- --base-href=/weather-app/
- run: npm test
- name: Upload build artifact
uses: actions/upload-pages-artifact@main
with:
name: github-pages
path: dist/weather-app
publish:
if: github.ref == 'refs/heads/main'
needs: [ build ]
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2