Skip to content

Commit 1ffbf56

Browse files
committed
fix: CI checkout paths and verify step for .mjs output
Checkout both repos as siblings under GITHUB_WORKSPACE so ../auths relative paths resolve correctly. Update verify step to check for .mjs output matching current vite config.
1 parent 4053d5c commit 1ffbf56

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,20 @@ on:
99
jobs:
1010
build-and-test:
1111
runs-on: ubuntu-latest
12+
defaults:
13+
run:
14+
working-directory: auths-verify-widget
1215
steps:
1316
- name: Checkout widget repo
1417
uses: actions/checkout@v4
18+
with:
19+
path: auths-verify-widget
1520

1621
- name: Checkout auths repo (for local @auths/verifier dependency)
1722
uses: actions/checkout@v4
1823
with:
1924
repository: auths-dev/auths
20-
path: ../auths
25+
path: auths
2126

2227
- name: Install Rust
2328
uses: dtolnay/rust-toolchain@stable
@@ -33,6 +38,7 @@ jobs:
3338
with:
3439
node-version: 20
3540
cache: npm
41+
cache-dependency-path: auths-verify-widget/package-lock.json
3642

3743
- name: Install dependencies
3844
run: npm ci
@@ -51,6 +57,6 @@ jobs:
5157

5258
- name: Verify output exists
5359
run: |
54-
test -f dist/auths-verify.js || (echo "Missing dist/auths-verify.js" && exit 1)
60+
test -f dist/auths-verify.mjs || (echo "Missing dist/auths-verify.mjs" && exit 1)
5561
echo "Bundle size:"
56-
ls -lh dist/auths-verify.js
62+
ls -lh dist/auths-verify.mjs

0 commit comments

Comments
 (0)