Skip to content

Commit e2ffd69

Browse files
committed
fix(ci): ensures the gh-pages build includes latest version
1 parent d9937ce commit e2ffd69

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,10 @@ jobs:
5353
run: npx semantic-release
5454

5555
build:
56-
runs-on: ubuntu-latest
5756
if: github.ref == 'refs/heads/main'
57+
needs:
58+
- release
59+
runs-on: ubuntu-latest
5860
steps:
5961
- uses: actions/checkout@v6
6062
- uses: actions/setup-node@v6
@@ -68,9 +70,9 @@ jobs:
6870
path: ./
6971

7072
deploy:
71-
runs-on: ubuntu-latest
72-
needs: build
7373
if: github.ref == 'refs/heads/main'
74+
needs: build
75+
runs-on: ubuntu-latest
7476
permissions:
7577
pages: write # to deploy to Pages
7678
id-token: write # to verify the deployment originates from an appropriate source

0 commit comments

Comments
 (0)