Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/actions/pnpm-install/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ runs:
with:
swap-size-gb: 10

- uses: pnpm/action-setup@v4.1.0
- uses: pnpm/action-setup@v4.2.0
name: Install pnpm
with:
run_install: false
Expand All @@ -26,7 +26,7 @@ runs:
run: |
echo "YEAR_MONTH=$(/bin/date -u "+%Y%m")" >> $GITHUB_OUTPUT

- uses: actions/cache@v4
- uses: actions/cache@v5
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-config.outputs.STORE_PATH }}
Expand Down
31 changes: 31 additions & 0 deletions .github/actions/prepare/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: prepare
description: Prepare action
inputs:
node-install:
description: Install node
default: "true"
pnpm-install:
description: Install pnpm depedencies
default: "true"
build:
description: Build packages
default: "true"
runs:
using: composite
steps:
- if: inputs.node-install == 'true'
name: Install Node.js
uses: actions/setup-node@v6
with:
node-version: 25
package-manager-cache: false
registry-url: https://registry.npmjs.org

- if: inputs.pnpm-install == 'true'
name: Install dependencies
uses: ./.github/actions/pnpm-install

- if: inputs.build == 'true'
name: Build packages
shell: bash
run: pnpm run build
41 changes: 41 additions & 0 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Pre-Release

on:
workflow_dispatch:
inputs:
version:
description: "New version of the package (leave empty for auto generated version)"
type: string
required: false
dry_run:
description: Perform a dry run?
type: boolean
default: false

permissions:
contents: write
pull-requests: write

jobs:
create-release-pr:
name: Create release pr
runs-on: ubuntu-latest
if: github.repository_owner == 'NanoForge-dev'
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 0
fetch-tags: true

- name: Prepare
uses: ./.github/actions/prepare

- name: Release packages
uses: ./node_modules/@nanoforge-dev/actions/dist/create-release-pr
with:
package: "@nanoforge-dev/schematics"
version: ${{ inputs.version }}
dry: ${{ inputs.dry_run }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31 changes: 31 additions & 0 deletions .github/workflows/release-tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Release Tag

on:
pull_request:
types:
- closed
branches:
- main

permissions:
contents: write

jobs:
create-release-tag:
name: Create release tag
runs-on: ubuntu-latest
if: github.repository_owner == 'NanoForge-dev' && github.event.pull_request.merged == true && startsWith(github.head_ref, 'releases/')
steps:
- name: Checkout repository
uses: actions/checkout@v6

- name: Prepare
uses: ./.github/actions/prepare

- name: Create release tag
uses: ./node_modules/@nanoforge-dev/actions/dist/create-release-tag
with:
commit: ${{ github.sha }}
branch: ${{ github.head_ref }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
14 changes: 2 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,8 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v6

- name: Install Node.js
uses: actions/setup-node@v6
with:
node-version: 25
package-manager-cache: false
registry-url: https://registry.npmjs.org/

- name: Install dependencies
uses: ./.github/actions/pnpm-install

- name: Build dependencies
run: pnpm run build
- name: Prepare
uses: ./.github/actions/prepare

- name: Release packages
uses: ./node_modules/@nanoforge-dev/actions/dist/release-packages
Expand Down
29 changes: 8 additions & 21 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,20 @@ on:
pull_request:
branches:
- main
- dev
push:
branches:
- main
workflow_dispatch:

env:
EM_CACHE_FOLDER: "emsdk-cache"

jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5

- name: "Setup pnpm"
uses: pnpm/action-setup@v4

- name: "Setup node"
uses: actions/setup-node@v4
with:
node-version: 25
cache: "pnpm"

- name: "Install dependencies"
run: pnpm install
- name: Checkout repository
uses: actions/checkout@v6

- name: "Run build"
run: pnpm build
- name: Prepare
uses: ./.github/actions/prepare

- name: "Run linter"
- name: Run linter
run: pnpm lint
21 changes: 11 additions & 10 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
# Ignore files for PNPM, NPM and YARN
.idea/
.vscode/

dist/
node_modules/

pnpm-lock.yaml
package-lock.json
yarn.lock
bun.lock
pnpm-workspace.yaml

apps/
CHANGELOG.md

.turbo/
node_modules/
dist/
coverage/
CHANGELOG.md
documentation/

.turbo/
apps/
19 changes: 11 additions & 8 deletions apps/client/.prettierignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
# Ignore files for PNPM, NPM and YARN
pnpm-lock.yaml
package-lock.json
yarn.lock
bun.lock
.idea/
.vscode/

.turbo/
node_modules/
dist/
coverage/
node_modules/

pnpm-lock.yaml
pnpm-workspace.yaml

CHANGELOG.md

coverage/

.turbo/
19 changes: 11 additions & 8 deletions apps/server/.prettierignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
# Ignore files for PNPM, NPM and YARN
pnpm-lock.yaml
package-lock.json
yarn.lock
bun.lock
.idea/
.vscode/

.turbo/
node_modules/
dist/
coverage/
node_modules/

pnpm-lock.yaml
pnpm-workspace.yaml

CHANGELOG.md

coverage/

.turbo/
19 changes: 11 additions & 8 deletions apps/website/.prettierignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
# Ignore files for PNPM, NPM and YARN
pnpm-lock.yaml
package-lock.json
yarn.lock
bun.lock
.idea/
.vscode/

.turbo/
node_modules/
dist/
coverage/
node_modules/

pnpm-lock.yaml
pnpm-workspace.yaml

CHANGELOG.md

coverage/

.turbo/
22 changes: 11 additions & 11 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,25 @@ catalogs:
turbo: ^2.7.5
typescript: ^5.9.3
ci:
"@commitlint/cli": ^20.3.1
"@commitlint/config-conventional": ^20.3.1
"@favware/cliff-jumper": ^6.0.0
"@nanoforge-dev/actions": ^1.1.0
'@commitlint/cli': ^20.3.1
'@commitlint/config-conventional': ^20.3.1
'@favware/cliff-jumper': ^6.0.0
'@nanoforge-dev/actions': ^1.1.0
husky: ^9.1.7
lint-staged: ^16.2.7
core:
"@types/bun": ^1.3.6
"@types/node": ^25.0.10
'@types/bun': ^1.3.6
'@types/node': ^25.0.10
bun: ^1.3.6
lint:
"@nanoforge-dev/utils-eslint-config": ^1.0.1
"@nanoforge-dev/utils-prettier-config": ^1.0.1
"@trivago/prettier-plugin-sort-imports": ^6.0.2
'@nanoforge-dev/utils-eslint-config': ^1.0.1
'@nanoforge-dev/utils-prettier-config': ^1.0.1
'@trivago/prettier-plugin-sort-imports': ^6.0.2
eslint: ^9.39.2
prettier: ^3.8.1
schematics:
"@angular-devkit/core": ^21.1.1
"@angular-devkit/schematics": ^21.1.1
'@angular-devkit/core': ^21.1.1
'@angular-devkit/schematics': ^21.1.1

onlyBuiltDependencies:
- bun