Update web-features #29
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
name: Build and deploy site | |
on: | |
push: | |
branches: [main] | |
schedule: | |
- cron: '0 0 * * *' | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check-out the repository | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
if: ${{ github.event_name == 'push' }} | |
run: npm ci | |
- name: Install dependency updates | |
if: ${{ github.event_name != 'push' }} | |
run: | | |
npx npm-check-updates -u | |
npm install | |
npm update web-features | |
- name: Commit dependency changes | |
if: ${{ github.event_name != 'push' }} | |
run: | | |
git config --local user.email "${{ github.actor }}@users.noreply.github.com" | |
git config --local user.name "${{ github.actor }}" | |
git add . | |
git commit -m "Bump deps" --allow-empty | |
git push origin main | |
- name: Generate site | |
run: npm run build | |
- name: Deploy to GitHub Pages | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
folder: docs |