Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 166fa43a55 | |||
| c032870efb | |||
| 26f62830d9 | |||
| 88958232f2 | |||
| 5ddd93afcc | |||
| abe20e7d8c | |||
| 10517cadcd | |||
| d925019c58 | |||
| 1f27e91c94 |
9
.github/workflows/build-lint-test.yaml
vendored
9
.github/workflows/build-lint-test.yaml
vendored
@@ -2,6 +2,10 @@
|
|||||||
|
|
||||||
name: Build, Lint, and Test Project
|
name: Build, Lint, and Test Project
|
||||||
|
|
||||||
|
# Required permission on the caller workflow
|
||||||
|
# permissions:
|
||||||
|
# contents: read
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
@@ -11,9 +15,6 @@ on:
|
|||||||
default: 'lts/*'
|
default: 'lts/*'
|
||||||
type: string
|
type: string
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
main:
|
main:
|
||||||
name: Build, Lint, and Test Project
|
name: Build, Lint, and Test Project
|
||||||
@@ -26,7 +27,7 @@ jobs:
|
|||||||
- name: 🔧 Setup Node.js
|
- name: 🔧 Setup Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: ${{ inputs.NODE_VERSION }}
|
node-version: ${{ inputs.node-version }}
|
||||||
|
|
||||||
- name: 🛠️ Setup Node.js Corepack
|
- name: 🛠️ Setup Node.js Corepack
|
||||||
run: corepack enable
|
run: corepack enable
|
||||||
|
|||||||
11
.github/workflows/codeql.yaml
vendored
11
.github/workflows/codeql.yaml
vendored
@@ -2,14 +2,15 @@
|
|||||||
|
|
||||||
name: CodeQL
|
name: CodeQL
|
||||||
|
|
||||||
|
# Required permission on the caller workflow
|
||||||
|
# permissions:
|
||||||
|
# actions: read
|
||||||
|
# contents: read
|
||||||
|
# security-events: write
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
|
|
||||||
permissions:
|
|
||||||
actions: read
|
|
||||||
contents: read
|
|
||||||
security-events: write
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
main:
|
main:
|
||||||
name: CodeQL Analyze
|
name: CodeQL Analyze
|
||||||
|
|||||||
21
.github/workflows/dependency-review.yaml
vendored
21
.github/workflows/dependency-review.yaml
vendored
@@ -2,11 +2,23 @@
|
|||||||
|
|
||||||
name: Dependency Review
|
name: Dependency Review
|
||||||
|
|
||||||
|
# Required permission on the caller workflow
|
||||||
|
# permissions:
|
||||||
|
# contents: read
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
|
inputs:
|
||||||
permissions:
|
base_ref:
|
||||||
contents: read
|
description: 'The base ref for the dependency review'
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
default: 'next'
|
||||||
|
head_ref:
|
||||||
|
description: 'The head ref for the dependency review'
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
default: 'next'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
main:
|
main:
|
||||||
@@ -19,3 +31,6 @@ jobs:
|
|||||||
|
|
||||||
- name: 🚀 Dependency Review
|
- name: 🚀 Dependency Review
|
||||||
uses: actions/dependency-review-action@v4
|
uses: actions/dependency-review-action@v4
|
||||||
|
with:
|
||||||
|
base-ref: ${{ inputs.base_ref }}
|
||||||
|
head-ref: ${{ inputs.head_ref }}
|
||||||
|
|||||||
@@ -2,6 +2,11 @@
|
|||||||
|
|
||||||
name: Publish NPM
|
name: Publish NPM
|
||||||
|
|
||||||
|
# Required permission on the caller workflow
|
||||||
|
# permissions:
|
||||||
|
# contents: read
|
||||||
|
# id-token: write
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
@@ -10,18 +15,16 @@ on:
|
|||||||
required: true
|
required: true
|
||||||
default: 'lts/*'
|
default: 'lts/*'
|
||||||
type: string
|
type: string
|
||||||
|
npm-registry-url:
|
||||||
|
description: 'NPM registry url'
|
||||||
|
required: false
|
||||||
|
default: 'https://registry.npmjs.org'
|
||||||
|
type: string
|
||||||
secrets:
|
secrets:
|
||||||
NPM_TOKEN:
|
NPM_TOKEN:
|
||||||
required: true
|
required: true
|
||||||
description: 'NPM token'
|
description: 'NPM token'
|
||||||
|
|
||||||
env:
|
|
||||||
NODE_VERSION: lts/*
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
id-token: write
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
main:
|
main:
|
||||||
if: github.repository_owner == 'the-nexim'
|
if: github.repository_owner == 'the-nexim'
|
||||||
@@ -36,7 +39,8 @@ jobs:
|
|||||||
- name: 🔧 Setup Node.js
|
- name: 🔧 Setup Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: ${{ inputs.NODE_VERSION }}
|
node-version: ${{ inputs.node-version }}
|
||||||
|
registry-url: ${{ inputs.npm-registry-url }}
|
||||||
|
|
||||||
- name: 🛠️ Setup Node.js Corepack
|
- name: 🛠️ Setup Node.js Corepack
|
||||||
run: corepack enable
|
run: corepack enable
|
||||||
@@ -60,11 +64,7 @@ jobs:
|
|||||||
run: yarn build
|
run: yarn build
|
||||||
env:
|
env:
|
||||||
WIREIT_LOGGER: metrics
|
WIREIT_LOGGER: metrics
|
||||||
|
NODE_ENV: production
|
||||||
- name: 🧹 Run ESLint
|
|
||||||
run: yarn lint
|
|
||||||
env:
|
|
||||||
WIREIT_LOGGER: metrics
|
|
||||||
|
|
||||||
- name: 🚀 Publish
|
- name: 🚀 Publish
|
||||||
run: yarn run publish -- --yes
|
run: yarn run publish -- --yes
|
||||||
14
.github/workflows/release.yaml
vendored
14
.github/workflows/release.yaml
vendored
@@ -2,6 +2,10 @@
|
|||||||
|
|
||||||
name: Build & Lint & Test & Release
|
name: Build & Lint & Test & Release
|
||||||
|
|
||||||
|
# Required permission on the caller workflow
|
||||||
|
# permissions:
|
||||||
|
# contents: write
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
@@ -14,16 +18,10 @@ on:
|
|||||||
GPG_KEY_ID:
|
GPG_KEY_ID:
|
||||||
required: true
|
required: true
|
||||||
description: 'GPG key ID'
|
description: 'GPG key ID'
|
||||||
BOT_TOKEN:
|
|
||||||
required: true
|
|
||||||
description: 'Nexim Bot token'
|
|
||||||
GPG_PRIVATE_KEY:
|
GPG_PRIVATE_KEY:
|
||||||
required: true
|
required: true
|
||||||
description: 'GPG private key'
|
description: 'GPG private key'
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
main:
|
main:
|
||||||
name: Build & Lint & Test & Release
|
name: Build & Lint & Test & Release
|
||||||
@@ -34,7 +32,7 @@ jobs:
|
|||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
token: ${{ secrets.BOT_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: 🙂↔️ Import GPG key
|
- name: 🙂↔️ Import GPG key
|
||||||
run: |
|
run: |
|
||||||
@@ -94,5 +92,5 @@ jobs:
|
|||||||
- name: 🤖 Get Release
|
- name: 🤖 Get Release
|
||||||
run: yarn lerna version --yes
|
run: yarn lerna version --yes
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
WIREIT_LOGGER: metrics
|
WIREIT_LOGGER: metrics
|
||||||
|
|||||||
@@ -1,17 +1,13 @@
|
|||||||
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
|
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
|
||||||
|
|
||||||
name: Sync labels
|
name: Sync labels
|
||||||
|
|
||||||
|
# Required permission on the caller workflow
|
||||||
|
# permissions:
|
||||||
|
# contents: read
|
||||||
|
# issues: write
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
secrets:
|
|
||||||
GITHUB_TOKEN:
|
|
||||||
description: 'GitHub token'
|
|
||||||
required: true
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
issues: write
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
main:
|
main:
|
||||||
5
.vscode/settings.json
vendored
5
.vscode/settings.json
vendored
@@ -22,7 +22,10 @@
|
|||||||
},
|
},
|
||||||
"typescript.enablePromptUseWorkspaceTsdk": true,
|
"typescript.enablePromptUseWorkspaceTsdk": true,
|
||||||
"typescript.tsdk": ".yarn/sdks/typescript/lib",
|
"typescript.tsdk": ".yarn/sdks/typescript/lib",
|
||||||
"cSpell.words": ["nexim"],
|
"cSpell.words": [
|
||||||
|
"nexim",
|
||||||
|
"wireit"
|
||||||
|
],
|
||||||
"todo-tree.tree.scanMode": "workspace only",
|
"todo-tree.tree.scanMode": "workspace only",
|
||||||
"github.copilot.chat.codeGeneration.instructions": [
|
"github.copilot.chat.codeGeneration.instructions": [
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user