forked from azero-id/resolver
-
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.
Merge branch 'azero-id:main' into main
- Loading branch information
Showing
83 changed files
with
6,696 additions
and
9,746 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,60 @@ | ||
name: Lint and Test | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- develop | ||
pull_request: | ||
|
||
jobs: | ||
lint: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Biome | ||
uses: biomejs/setup-biome@v2 | ||
with: | ||
version: latest | ||
|
||
- name: Run Biome | ||
run: biome ci . | ||
|
||
checks: | ||
name: Checks & Tests | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [20] | ||
pnpm-version: [9.6.0] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup pnpm ${{ matrix.pnpm-version }} | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: ${{ matrix.pnpm-version }} | ||
|
||
- name: Set up Node ${{ matrix.node-version }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
cache: 'pnpm' | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Install Dependencies | ||
run: pnpm i | ||
|
||
- name: Build | ||
run: pnpm run build | ||
|
||
- name: Typecheck | ||
run: pnpm run typecheck | ||
|
||
- name: Tests | ||
run: pnpm run test |
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,45 +1,52 @@ | ||
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
concurrency: ${{ github.workflow }}-${{ github.ref }} | ||
|
||
jobs: | ||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [18] | ||
pnpm-version: [8.3.1] | ||
node-version: [20] | ||
pnpm-version: [9.6.0] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits | ||
fetch-depth: 0 | ||
submodules: true | ||
|
||
- uses: pnpm/[email protected] | ||
- name: Setup pnpm ${{ matrix.pnpm-version }} | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: ${{ matrix.pnpm-version }} | ||
|
||
- name: Set up Node ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
uses: actions/setup-node@v4 | ||
with: | ||
cache: 'pnpm' | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Install Dependencies | ||
run: pnpm i | ||
run: pnpm install --frozen-lockfile | ||
|
||
- name: Create Release Pull Request or Publish to npm | ||
id: changesets | ||
uses: changesets/action@v1.4.1 | ||
uses: changesets/action@v1 | ||
with: | ||
title: 'chore(changeset): Bump package version' | ||
commit: 'chore(changeset): Bump package version' | ||
version: pnpm changeset:version | ||
publish: pnpm changeset:publish | ||
version: pnpm run changeset:version | ||
publish: pnpm run changeset:publish | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_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 +1 @@ | ||
v18 | ||
v20 |
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,5 +1,22 @@ | ||
package-lock.json | ||
pnpm-lock.yaml | ||
bun.lockb | ||
yarn.lock | ||
|
||
LICENSE | ||
|
||
node_modules | ||
out | ||
.next | ||
dist | ||
docs | ||
LICENSE | ||
|
||
*.ts | ||
*.js | ||
*.tsx | ||
*.jsx | ||
*.cjs | ||
*.mjs | ||
*.json | ||
*.jsonc | ||
*.code-workspace |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
{ | ||
"recommendations": ["dbaeumer.vscode-eslint", "esbenp.prettier-vscode", "jayfong.generate-index"] | ||
"recommendations": [ | ||
"biomejs.biome", | ||
"esbenp.prettier-vscode", | ||
"dotenv.dotenv-vscode", | ||
"jayfong.generate-index" | ||
] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"todo-tree.tree.scanMode": "workspace" | ||
} | ||
} |
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,69 @@ | ||
{ | ||
"$schema": "https://biomejs.dev/schemas/1.8.2/schema.json", | ||
"vcs": { | ||
"enabled": true, | ||
"clientKind": "git", | ||
"useIgnoreFile": true | ||
}, | ||
"formatter": { | ||
"enabled": true, | ||
"ignore": [".next", "docs", "dist", "deployments"], | ||
"indentStyle": "space", | ||
"formatWithErrors": true, | ||
"indentWidth": 2, | ||
"lineWidth": 100 | ||
}, | ||
"organizeImports": { | ||
"enabled": true, | ||
"ignore": [".next", "docs", "dist"] | ||
}, | ||
"linter": { | ||
"enabled": true, | ||
"ignore": [".next", "docs", "dist"], | ||
"rules": { | ||
"recommended": true, | ||
"a11y": { | ||
"useAriaPropsForRole": "off" | ||
}, | ||
"complexity": { | ||
"noForEach": "off" | ||
}, | ||
"correctness": { | ||
"useExhaustiveDependencies": "off" | ||
}, | ||
"nursery": { | ||
"useSortedClasses": { | ||
"level": "info", | ||
"fix": "safe", | ||
"options": { | ||
"functions": ["clsx", "cva", "tw"] | ||
} | ||
}, | ||
"noRestrictedImports": { | ||
"level": "error", | ||
"options": { | ||
"paths": { | ||
"process": "Import from '@config/environment' instead" | ||
} | ||
} | ||
} | ||
}, | ||
"security": { | ||
"noDangerouslySetInnerHtml": "off" | ||
}, | ||
"suspicious": { | ||
"noExplicitAny": "off" | ||
}, | ||
"style": { | ||
"noUnusedTemplateLiteral": "off" | ||
} | ||
} | ||
}, | ||
"javascript": { | ||
"formatter": { | ||
"quoteStyle": "single", | ||
"trailingCommas": "all", | ||
"semicolons": "asNeeded" | ||
} | ||
} | ||
} |
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.