Revert "fix(auth): AuthGuard
should now be more stable due to creat…
#347
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Main | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
jobs: | |
run_checks: | |
name: Run code checks | |
uses: spuxx-dev/ci-cd/.github/workflows/pnpm_run_checks.yml@v4.1.0 | |
with: | |
PREPARE: pnpm -r --filter './packages/**' build | |
run_unit_tests: | |
name: Run tests (vitest) | |
uses: spuxx-dev/ci-cd/.github/workflows/pnpm_run_tests_vitest.yml@v4.1.0 | |
with: | |
PREPARE: pnpm -r --filter './packages/**' build | |
run_release_please: | |
name: Release Please | |
uses: spuxx-dev/ci-cd/.github/workflows/pnpm_release-please.yml@v4.1.0 | |
needs: | |
- run_checks | |
- run_unit_tests | |
secrets: | |
TOKEN: ${{ secrets.RELEASE_PLEASE_TOKEN }} | |
deploy_pages: | |
name: Deploy Starlight App to GitHub Pages | |
runs-on: ubuntu-latest | |
needs: | |
- run_checks | |
# - run_unit_tests | |
strategy: | |
matrix: | |
node-version: [22] | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm install | |
- name: Build dependencies | |
run: pnpm -r --filter './packages/**' build | |
- name: Generate docs | |
run: pnpm run docs:generate | |
- name: Build and deploy | |
uses: withastro/action@v3 | |
with: | |
path: ./apps/starlight | |
node-version: 22 | |
package-manager: pnpm@latest | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |