Skip to content

Merge pull request #29 from OUCC/ciffelia/fix-icon-component #63

Merge pull request #29 from OUCC/ciffelia/fix-icon-component

Merge pull request #29 from OUCC/ciffelia/fix-icon-component #63

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
- run: npm ci
- run: npm run build
- uses: actions/upload-pages-artifact@v1
with:
path: dist
retention-days: 90
lint:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
- run: npm ci
- run: npm run lint
typecheck:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
- run: npm ci
- run: npm run typecheck
deploy:
if: github.ref == 'refs/heads/main'
needs: [build, lint, typecheck]
permissions:
pages: write
id-token: write
concurrency:
group: 'pages'
cancel-in-progress: false
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-22.04
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1