Skip to content

fix: adding a new item will no longer be permanently focused upon sel… #62

fix: adding a new item will no longer be permanently focused upon sel…

fix: adding a new item will no longer be permanently focused upon sel… #62

Workflow file for this run

name: Web App
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
install:
name: Install
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/[email protected]
with:
bun-version: latest
- name: Install Packages
run: bun install --frozen-lockfile
# lint:
# name: Lint
# runs-on: ubuntu-latest
# needs: [install]
# steps:
# - uses: actions/checkout@v4
# - uses: oven-sh/[email protected]
# with:
# bun-version: latest
# - name: Install Packages
# run: bun install --frozen-lockfile
# - name: Lint
# run: bun lint
# test:
# name: Test
# runs-on: ubuntu-latest
# needs: [install]
# steps:
# - uses: actions/checkout@v4
# - uses: oven-sh/[email protected]
# with:
# bun-version: latest
# - name: Install Packages
# run: bun install --frozen-lockfile
# - name: Coverage
# run: bun test --coverage
# # TODO: Enable once LCOV is supported
# # https://github.com/oven-sh/bun/issues/4015
# # - name: Coveralls
# # uses: coverallsapp/github-action@master
# # with:
# # github-token: ${{ secrets.GITHUB_TOKEN }}
build:
name: Build
runs-on: ubuntu-latest
needs: [install]
steps:
- uses: actions/checkout@v4
- uses: oven-sh/[email protected]
with:
bun-version: latest
- name: Install Packages
run: bun install --frozen-lockfile
- name: Build
run: bun run build
- name: Upload Pages artifact
uses: actions/[email protected]
with:
path: dist
release:
name: Release
runs-on: ubuntu-latest
needs: [build]
# needs: [lint, test, build]
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/[email protected]