Skip to content

upgrade actions in lint workflow #96

upgrade actions in lint workflow

upgrade actions in lint workflow #96

Workflow file for this run

name: Deploy static content to Pages
on:
push:
branches: ["main"]
paths-ignore:
- "README.md"
- "TODO.md"
- ".github/ISSUE_TEMPLATE/*"
- ".eslintrc.json"
- ".gitignore"
- ".prettierignore"
- ".prettierrc.json"
- ".stylelintrc.json"
workflow_dispatch:
permissions:
contents: write # Required for bumping version (read-only required for deployment)
pages: write # Required for deployment
id-token: write # Required for deployment
actions: read # Required for deployment
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install requirements
run: npm install
- name: Run tests
run: npm test
- name: Setup git config
run: |
git config --global user.name "skedwards88"
git config --global user.email "skedwards88@gmail.com"
- name: Bump version
run: npm version patch
- name: Push the version bump
run: |
git push origin main
- name: Build
run: npm run build
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: "./dist/"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4