Skip to content

Commit

Permalink
fix(ci): split jobs between test build and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dirathea committed Oct 16, 2024
1 parent 4a0d49c commit 4d91c60
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,20 @@ permissions:
# issues: write

jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 18
cache: npm
- name: Install dependencies
run: npm ci
- name: Build website
run: npm run build --workspace=docs
build:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -52,6 +66,4 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Your GoReleaser Pro key, if you are using the 'goreleaser-pro' distribution
# GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
- name: Test docs build
run: npm run build --workspace=docs
# GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}

0 comments on commit 4d91c60

Please sign in to comment.