Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,31 @@ jobs:
exit 1
fi

verify-npm-package:
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6

- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: "24"

# Every file sealed in the XCFramework's _CodeSignature must ship,
# otherwise Xcode fails signature collection when archiving.
- name: Verify XCFramework is complete in npm package
run: |
git ls-files ios/Plugin/TalsecRuntime.xcframework | sort > "$RUNNER_TEMP/expected.txt"
npm pack --dry-run --json --ignore-scripts \
| node -e 'const [p] = JSON.parse(require("fs").readFileSync(0)); p.files.forEach(f => console.log(f.path))' \
| grep '^ios/Plugin/TalsecRuntime.xcframework/' | sort > "$RUNNER_TEMP/packed.txt"
if ! diff "$RUNNER_TEMP/expected.txt" "$RUNNER_TEMP/packed.txt"; then
echo "::error::npm package does not contain the complete TalsecRuntime.xcframework. Check .npmignore."
exit 1
fi

build-android:
name: Build Android Example
runs-on: ubuntu-latest
Expand Down