diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4dd477c..b15d81b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,18 +12,17 @@ jobs: steps: - uses: actions/checkout@v7 - - uses: pnpm/action-setup@v6 - with: - run_install: true + - uses: nubjs/setup-nub@v0 + - run: nub install - - run: pnpm fmt:check - - run: pnpm svelte-check - - run: pnpm tsc + - run: nub run fmt:check + - run: nub run svelte:check + - run: nub run compile - name: build production deploy artifacts env: VITE_GITHUB_ARCHIVE_URL: ${{ github.server_url }}/${{ github.repository }}/archive/${{ github.sha }}.zip - run: pnpm build:production + run: nub run build:production - name: Upload artifact uses: actions/upload-pages-artifact@v5 diff --git a/package.json b/package.json index 24a5e82..eebcd65 100644 --- a/package.json +++ b/package.json @@ -8,13 +8,15 @@ "port": "8000" }, "scripts": { + "compile": "tsc --pretty", "check:all": "oxfmt --check src/ && svelte-check && tsc --noEmit", "build": "vite build", "build:production": "vite build --mode production", "dev": "vite", "preview": "vite preview", "fmt:check": "oxfmt --check src/", - "fmt:fix": "oxfmt --write src/" + "fmt:fix": "oxfmt --write src/", + "svelte:check": "svelte-check" }, "devDependencies": { "@sveltejs/vite-plugin-svelte": "^7.1.2",