-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
190 changed files
with
4,187 additions
and
1,400 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,3 @@ | ||
# Each demo has separate origin due to relying party restrictions (https://webauthn.wtf/how-it-works/relying-party) | ||
NEXT_PUBLIC_DEFAULT_EXAMPLE_ORIGIN="http://localhost:3000" | ||
NEXT_PUBLIC_UPGRADE_EXAMPLE_ORIGIN="http://localhost:3001" |
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,44 @@ | ||
name: Reusable Preview Workflow | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
vercel_project_name: | ||
required: true | ||
type: string | ||
vercel_scope: | ||
required: true | ||
type: string | ||
|
||
secrets: | ||
VERCEL_TOKEN: | ||
required: true | ||
SENTRY_AUTH_TOKEN: | ||
required: true | ||
|
||
jobs: | ||
shared-steps: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 22 | ||
|
||
- name: Enable Corepack | ||
run: corepack enable | ||
|
||
- name: Install Corepack | ||
run: corepack install | ||
|
||
- name: Link Project to Vercel | ||
run: yarn dlx -q vercel link --project=${{ inputs.vercel_project_name }} --scope=${{ inputs.vercel_scope }} --yes --token=${{ secrets.VERCEL_TOKEN }} | ||
|
||
- name: Pull Vercel Environment Information | ||
run: yarn dlx -q vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }} | ||
|
||
- name: Build Project Artifacts | ||
run: yarn dlx -q vercel build --token=${{ secrets.VERCEL_TOKEN }} | ||
|
||
- name: Deploy Project Artifacts to Vercel | ||
run: yarn dlx -q vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} |
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 |
---|---|---|
@@ -1,37 +1,21 @@ | ||
name: Vercel Preview Deployment | ||
env: | ||
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | ||
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} | ||
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} | ||
VERCEL_SCOPE: ${{ secrets.VERCEL_SCOPE }} | ||
VERCEL_PROJECT_NAME: ${{ secrets.VERCEL_PROJECT_NAME }} | ||
|
||
on: | ||
push: | ||
branches: | ||
- dev | ||
jobs: | ||
Deploy-Preview: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
|
||
- name: Enable Corepack | ||
run: corepack enable | ||
|
||
- name: Install Corepack | ||
run: corepack install | ||
|
||
- name: Link Project to Vercel | ||
run: yarn dlx -q vercel link --project=$VERCEL_PROJECT_NAME --scope=$VERCEL_SCOPE --yes --token=$VERCEL_TOKEN | ||
|
||
- name: Pull Vercel Environment Information | ||
run: yarn dlx -q vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }} | ||
|
||
- name: Build Project Artifacts | ||
run: yarn dlx -q vercel build --token=${{ secrets.VERCEL_TOKEN }} | ||
jobs: | ||
default-example: | ||
uses: ./.github/workflows/preview-common.yaml | ||
secrets: inherit | ||
with: | ||
vercel_project_name: ${{ vars.VERCEL_PROJECT_DEFAULT }} | ||
vercel_scope: ${{ vars.VERCEL_SCOPE }} | ||
|
||
- name: Deploy Project Artifacts to Vercel | ||
run: yarn dlx -q vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} | ||
upgrade-example: | ||
uses: ./.github/workflows/preview-common.yaml | ||
secrets: inherit | ||
with: | ||
vercel_project_name: ${{ vars.VERCEL_PROJECT_UPGRADE }} | ||
vercel_scope: ${{ vars.VERCEL_SCOPE }} |
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,44 @@ | ||
name: Reusable Production Workflow | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
vercel_project_name: | ||
required: true | ||
type: string | ||
vercel_scope: | ||
required: true | ||
type: string | ||
|
||
secrets: | ||
VERCEL_TOKEN: | ||
required: true | ||
SENTRY_AUTH_TOKEN: | ||
required: true | ||
|
||
jobs: | ||
shared-steps: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 22 | ||
|
||
- name: Enable Corepack | ||
run: corepack enable | ||
|
||
- name: Install Corepack | ||
run: corepack install | ||
|
||
- name: Link Project to Vercel | ||
run: yarn dlx -q vercel link --project=${{ inputs.vercel_project_name }} --scope=${{ inputs.vercel_scope }} --yes --token=${{ secrets.VERCEL_TOKEN }} | ||
|
||
- name: Pull Vercel Environment Information | ||
run: yarn dlx -q vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }} | ||
|
||
- name: Build Project Artifacts | ||
run: yarn dlx -q vercel build --prod --token=${{ secrets.VERCEL_TOKEN }} | ||
|
||
- name: Deploy Project Artifacts to Vercel | ||
run: yarn dlx -q vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }} |
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 |
---|---|---|
@@ -1,37 +1,20 @@ | ||
name: Vercel Production Deployment | ||
env: | ||
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | ||
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} | ||
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} | ||
VERCEL_SCOPE: ${{ secrets.VERCEL_SCOPE }} | ||
VERCEL_PROJECT_NAME: ${{ secrets.VERCEL_PROJECT_NAME }} | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
Deploy-Preview: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
|
||
- name: Enable Corepack | ||
run: corepack enable | ||
|
||
- name: Install Corepack | ||
run: corepack install | ||
|
||
- name: Link Project to Vercel | ||
run: yarn dlx -q vercel link --project=$VERCEL_PROJECT_NAME --scope=$VERCEL_SCOPE --yes --token=$VERCEL_TOKEN | ||
|
||
- name: Pull Vercel Environment Information | ||
run: yarn dlx -q vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }} | ||
|
||
- name: Build Project Artifacts | ||
run: yarn dlx -q vercel build --prod --token=${{ secrets.VERCEL_TOKEN }} | ||
jobs: | ||
default-example: | ||
uses: ./.github/workflows/production-common.yaml | ||
secrets: inherit | ||
with: | ||
vercel_project_name: ${{ vars.VERCEL_PROJECT_DEFAULT }} | ||
vercel_scope: ${{ vars.VERCEL_SCOPE }} | ||
|
||
- name: Deploy Project Artifacts to Vercel | ||
run: yarn dlx -q vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }} | ||
upgrade-example: | ||
uses: ./.github/workflows/production-common.yaml | ||
with: | ||
vercel_project_name: ${{ secrets.VERCEL_PROJECT_UPGRADE }} | ||
vercel_scope: ${{ vars.VERCEL_SCOPE }} |
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 |
---|---|---|
@@ -1 +1 @@ | ||
20.18.0 | ||
22.11.0 |
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
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
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
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
Oops, something went wrong.