From 0edb3fa55c0d6f6c67e8631275807854f8e8c246 Mon Sep 17 00:00:00 2001 From: ubermanu Date: Fri, 22 Dec 2023 14:43:49 +0100 Subject: [PATCH] add ci workflow --- .github/workflows/ci.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..360b471 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,29 @@ +name: continuous-integration + +on: + push: + branches: ["main"] + workflow_dispatch: + +jobs: + build: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: pnpm/action-setup@v2 + with: + version: 8 + + - uses: actions/setup-node@v4 + with: + node-version: 21 + registry-url: 'https://registry.npmjs.org' + cache: 'pnpm' + + - run: pnpm i + - run: pnpm build + - run: pnpm svelte-check