Skip to content

Commit 2f179cc

Browse files
committed
fix: simplify CI workflows and update demo package-lock.json
- Remove npm pack complexity from workflows to fix CI issues - Revert to simple approach: main npm ci -> demo npm ci -> build - Update demo package-lock.json to fix cbor-web version mismatch - This resolves 'npm ci' sync errors in GitHub Actions Changes: - .github/workflows/test.yml: Remove pack steps, use direct dependencies - .github/workflows/ci-cd.yml: Remove pack steps, use direct dependencies - examples/webauthn-todo-demo/package-lock.json: Regenerated with correct versions
1 parent 544d275 commit 2f179cc

3 files changed

Lines changed: 2363 additions & 8089 deletions

File tree

.github/workflows/ci-cd.yml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -30,20 +30,12 @@ jobs:
3030
run: npm run lint --if-present
3131
continue-on-error: true
3232

33-
- name: Build package
34-
run: npm run build --if-present
35-
36-
- name: Pack main package
37-
run: npm pack
38-
3933
- name: Install Playwright browsers
4034
run: npx playwright install --with-deps chromium
4135

42-
- name: Install demo dependencies with packed tarball
36+
- name: Install demo dependencies
4337
run: |
4438
cd examples/webauthn-todo-demo
45-
# Update package.json to use the packed tarball
46-
npm pkg set dependencies.@le-space/orbitdb-identity-provider-webauthn-did="file:../../le-space-orbitdb-identity-provider-webauthn-did-0.0.1.tgz"
4739
npm ci
4840
4941
- name: Build demo application
@@ -179,17 +171,13 @@ jobs:
179171
- name: Build package (if build script exists)
180172
run: npm run build --if-present
181173

182-
- name: Pack package for final testing
183-
run: npm pack
184-
185174
- name: Run final tests before publish
186175
run: |
187176
# Install Playwright for final test run
188177
npx playwright install --with-deps chromium
189178
190-
# Install and start demo with packed tarball
179+
# Install and start demo
191180
cd examples/webauthn-todo-demo
192-
npm pkg set dependencies.@le-space/orbitdb-identity-provider-webauthn-did="file:../../le-space-orbitdb-identity-provider-webauthn-did-0.0.1.tgz"
193181
npm ci
194182
npm run build
195183
npm run preview -- --port 5173 --host &

.github/workflows/test.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,12 @@ jobs:
2828
run: npm run lint --if-present
2929
continue-on-error: true
3030

31-
- name: Build package
32-
run: npm run build --if-present
33-
34-
- name: Pack main package
35-
run: npm pack
36-
3731
- name: Install Playwright browsers
3832
run: npx playwright install --with-deps chromium
3933

40-
- name: Install demo dependencies with packed tarball
34+
- name: Install demo dependencies
4135
run: |
4236
cd examples/webauthn-todo-demo
43-
# Update package.json to use the packed tarball
44-
npm pkg set dependencies.@le-space/orbitdb-identity-provider-webauthn-did="file:../../le-space-orbitdb-identity-provider-webauthn-did-0.0.1.tgz"
4537
npm ci
4638
4739
- name: Build demo application

0 commit comments

Comments
 (0)