feat: new passkey signature format #239
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
name: "Preview Auth Server" | |
on: | |
pull_request: | |
paths: | |
- "packages/auth-server/**" | |
- "packages/sdk/**" | |
workflow_dispatch: | |
env: | |
HUSKY: 0 | |
CI: true | |
jobs: | |
build_and_preview: | |
if: ${{ github.event_name == 'workflow_dispatch' || github.event.pull_request.head.repo.full_name == github.repository }} | |
runs-on: ubuntu-latest | |
outputs: | |
output_urls: "${{ steps.preview_deploy.outputs.urls }}" | |
steps: | |
- uses: actions/checkout@v4 # v4 | |
with: | |
submodules: recursive | |
- 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' | |
# SDK depends on contracts | |
- name: Install contract dependencies | |
run: pnpm install -r --frozen-lockfile | |
working-directory: packages/contracts | |
- name: Build contracts | |
run: pnpm run build | |
working-directory: packages/contracts | |
# Local node to have target for deploy | |
- name: Era Test Node Action | |
uses: dutterbutter/[email protected] | |
- name: Deploy contracts | |
run: pnpm run deploy --file ../auth-server/stores/local-node.json | |
working-directory: packages/contracts | |
- name: Install dependencies | |
run: pnpm install -r --frozen-lockfile | |
- name: Build Auth Server | |
env: | |
NUXT_PUBLIC_DEFAULT_CHAIN_ID: 300 | |
run: pnpm nx build auth-server | |
- name: Deploy preview | |
uses: matter-labs/action-hosting-deploy@main | |
with: | |
repoToken: '${{ secrets.GITHUB_TOKEN }}' | |
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_AUTH_SERVER_STAGING }}" | |
projectId: zksync-auth-server-staging | |
target: zksync-auth-server-staging |