-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
94087ad
commit 3121570
Showing
3 changed files
with
45 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Deploy NPM Package | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- "packages/sdk/**" | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: 9.11.0 | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: lts/Iron | ||
cache: 'pnpm' | ||
|
||
- name: Install dependencies | ||
run: pnpm install -r --frozen-lockfile | ||
|
||
- name: Build the package | ||
run: pnpm nx build sdk | ||
|
||
- name: Prepare package.json | ||
working-directory: packages/sdk | ||
run: node prepare-package.mjs | ||
env: | ||
INPUT_VERSION: 0.0.0-beta.6 | ||
|
||
- name: Create .npmrc | ||
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPMJS_NPM_MATTERLABS_AUTOMATION_TOKEN }}" > ~/.npmrc | ||
|
||
- name: Publish to NPM | ||
working-directory: packages/sdk | ||
run: npm publish --access public |
Submodule contracts
updated
18 files
+1 −0 | .env.example | |
+3 −4 | .github/workflows/ci.yml | |
+29 −27 | package.json | |
+9 −15 | pnpm-lock.yaml | |
+33 −15 | scripts/deploy.ts | |
+3 −6 | src/batch/BatchCaller.sol | |
+1 −1 | src/handlers/ERC1271Handler.sol | |
+0 −203 | src/helpers/Base64.sol | |
+0 −1,058 | src/helpers/EIP712.sol | |
+19 −0 | src/helpers/TimestampAsserterLocator.sol | |
+6 −0 | src/interfaces/ITimestampAsserter.sol | |
+42 −21 | src/libraries/SessionLib.sol | |
+9 −2 | src/test/ExampleAuthServerPaymaster.sol | |
+0 −121 | src/validators/PasskeyValidator.sol | |
+10 −12 | src/validators/SessionKeyValidator.sol | |
+48 −11 | src/validators/WebAuthValidator.sol | |
+4 −4 | test/PasskeyModule.ts | |
+191 −17 | test/SessionKeyTest.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters