Compare commits
14 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bf6971e1af | ||
|
|
3bc559e467 | ||
|
|
1660ce4e02 | ||
|
|
0d2de95d88 | ||
| 9941d2fc6b | |||
| b00b7468a1 | |||
| 166fa43a55 | |||
| c032870efb | |||
| 26f62830d9 | |||
| 88958232f2 | |||
| 5ddd93afcc | |||
| abe20e7d8c | |||
| 10517cadcd | |||
| d925019c58 |
19
.github/workflows/build-lint-test.yaml
vendored
19
.github/workflows/build-lint-test.yaml
vendored
@@ -2,6 +2,10 @@
|
||||
|
||||
name: Build, Lint, and Test Project
|
||||
|
||||
# Required permission on the caller workflow
|
||||
# permissions:
|
||||
# contents: read
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
@@ -11,9 +15,6 @@ on:
|
||||
default: 'lts/*'
|
||||
type: string
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
main:
|
||||
name: Build, Lint, and Test Project
|
||||
@@ -21,12 +22,12 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: 📥 Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v5
|
||||
|
||||
- name: 🔧 Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: ${{ inputs.NODE_VERSION }}
|
||||
node-version: ${{ inputs.node-version }}
|
||||
|
||||
- name: 🛠️ Setup Node.js Corepack
|
||||
run: corepack enable
|
||||
@@ -43,6 +44,14 @@ jobs:
|
||||
restore-keys: |
|
||||
${{ runner.os }}-yarn-
|
||||
|
||||
- name: 🗂️ Cache .cache folders
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: packages/**/.cache
|
||||
key: ${{ runner.os }}-cache
|
||||
restore-keys: |
|
||||
${{ runner.os }}-cache-
|
||||
|
||||
- name: 📥 Install Dependencies
|
||||
run: yarn install --immutable
|
||||
|
||||
|
||||
13
.github/workflows/codeql.yaml
vendored
13
.github/workflows/codeql.yaml
vendored
@@ -2,14 +2,15 @@
|
||||
|
||||
name: CodeQL
|
||||
|
||||
# Required permission on the caller workflow
|
||||
# permissions:
|
||||
# actions: read
|
||||
# contents: read
|
||||
# security-events: write
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
|
||||
permissions:
|
||||
actions: read
|
||||
contents: read
|
||||
security-events: write
|
||||
|
||||
jobs:
|
||||
main:
|
||||
name: CodeQL Analyze
|
||||
@@ -23,7 +24,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: ⤵️ Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v5
|
||||
|
||||
- name: 🏗 Initialize CodeQL
|
||||
uses: github/codeql-action/init@v3
|
||||
|
||||
23
.github/workflows/dependency-review.yaml
vendored
23
.github/workflows/dependency-review.yaml
vendored
@@ -2,11 +2,23 @@
|
||||
|
||||
name: Dependency Review
|
||||
|
||||
# Required permission on the caller workflow
|
||||
# permissions:
|
||||
# contents: read
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
inputs:
|
||||
base_ref:
|
||||
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:
|
||||
main:
|
||||
@@ -15,7 +27,10 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: ⤵️ Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v5
|
||||
|
||||
- name: 🚀 Dependency Review
|
||||
uses: actions/dependency-review-action@v4
|
||||
with:
|
||||
base-ref: ${{ inputs.base_ref }}
|
||||
head-ref: ${{ inputs.head_ref }}
|
||||
|
||||
28
.github/workflows/publish-npm.yaml
vendored
28
.github/workflows/publish-npm.yaml
vendored
@@ -2,6 +2,11 @@
|
||||
|
||||
name: Publish NPM
|
||||
|
||||
# Required permission on the caller workflow
|
||||
# permissions:
|
||||
# contents: read
|
||||
# id-token: write
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
@@ -10,18 +15,16 @@ on:
|
||||
required: true
|
||||
default: 'lts/*'
|
||||
type: string
|
||||
npm-registry-url:
|
||||
description: 'NPM registry url'
|
||||
required: false
|
||||
default: 'https://registry.npmjs.org'
|
||||
type: string
|
||||
secrets:
|
||||
NPM_TOKEN:
|
||||
required: true
|
||||
description: 'NPM token'
|
||||
|
||||
env:
|
||||
NODE_VERSION: lts/*
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
id-token: write
|
||||
|
||||
jobs:
|
||||
main:
|
||||
if: github.repository_owner == 'the-nexim'
|
||||
@@ -31,12 +34,13 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: 📥 Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v5
|
||||
|
||||
- name: 🔧 Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: ${{ inputs.NODE_VERSION }}
|
||||
node-version: ${{ inputs.node-version }}
|
||||
registry-url: ${{ inputs.npm-registry-url }}
|
||||
|
||||
- name: 🛠️ Setup Node.js Corepack
|
||||
run: corepack enable
|
||||
@@ -60,11 +64,7 @@ jobs:
|
||||
run: yarn build
|
||||
env:
|
||||
WIREIT_LOGGER: metrics
|
||||
|
||||
- name: 🧹 Run ESLint
|
||||
run: yarn lint
|
||||
env:
|
||||
WIREIT_LOGGER: metrics
|
||||
NODE_ENV: production
|
||||
|
||||
- name: 🚀 Publish
|
||||
run: yarn run publish -- --yes
|
||||
|
||||
19
.github/workflows/release.yaml
vendored
19
.github/workflows/release.yaml
vendored
@@ -2,6 +2,10 @@
|
||||
|
||||
name: Build & Lint & Test & Release
|
||||
|
||||
# Required permission on the caller workflow
|
||||
# permissions:
|
||||
# contents: write
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
@@ -11,19 +15,16 @@ on:
|
||||
default: 'lts/*'
|
||||
type: string
|
||||
secrets:
|
||||
RELEASER_ACCOUNT_TOKEN:
|
||||
required: true
|
||||
description: 'GitHub token for the releaser account'
|
||||
GPG_KEY_ID:
|
||||
required: true
|
||||
description: 'GPG key ID'
|
||||
BOT_TOKEN:
|
||||
required: true
|
||||
description: 'Nexim Bot token'
|
||||
GPG_PRIVATE_KEY:
|
||||
required: true
|
||||
description: 'GPG private key'
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
main:
|
||||
name: Build & Lint & Test & Release
|
||||
@@ -31,10 +32,10 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: ⤵️ Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v5
|
||||
with:
|
||||
fetch-depth: 0
|
||||
token: ${{ secrets.BOT_TOKEN }}
|
||||
token: ${{ secrets.RELEASER_ACCOUNT_TOKEN }}
|
||||
|
||||
- name: 🙂↔️ Import GPG key
|
||||
run: |
|
||||
@@ -94,5 +95,5 @@ jobs:
|
||||
- name: 🤖 Get Release
|
||||
run: yarn lerna version --yes
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
|
||||
GITHUB_TOKEN: ${{ secrets.RELEASER_ACCOUNT_TOKEN }}
|
||||
WIREIT_LOGGER: metrics
|
||||
|
||||
@@ -1,17 +1,13 @@
|
||||
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
|
||||
|
||||
name: Sync labels
|
||||
|
||||
# Required permission on the caller workflow
|
||||
# permissions:
|
||||
# contents: read
|
||||
# issues: write
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
secrets:
|
||||
GITHUB_TOKEN:
|
||||
description: 'GitHub token'
|
||||
required: true
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
issues: write
|
||||
|
||||
jobs:
|
||||
main:
|
||||
@@ -20,7 +16,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: ⤵️ Check out code from GitHub
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v5
|
||||
|
||||
- name: 🚀 Run Label Syncer
|
||||
uses: micnncim/action-label-syncer@v1
|
||||
5
.vscode/settings.json
vendored
5
.vscode/settings.json
vendored
@@ -22,7 +22,10 @@
|
||||
},
|
||||
"typescript.enablePromptUseWorkspaceTsdk": true,
|
||||
"typescript.tsdk": ".yarn/sdks/typescript/lib",
|
||||
"cSpell.words": ["nexim"],
|
||||
"cSpell.words": [
|
||||
"nexim",
|
||||
"wireit"
|
||||
],
|
||||
"todo-tree.tree.scanMode": "workspace only",
|
||||
"github.copilot.chat.codeGeneration.instructions": [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user