Skip to content
Draft
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
13 changes: 13 additions & 0 deletions .github/workflows/all.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,19 @@ on:
branches: [main]
pull_request:

env:
node-version: 24.20.0
npm-version: 11.19.0

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: ${{ env.node-version }}
- run: npm install -g npm@${{ env.npm-version }}
- run: npm ci -w pkgs/typed-api-spec
- run: npm run build -w pkgs/typed-api-spec
- run: npm test -w pkgs/typed-api-spec
Expand All @@ -19,6 +26,9 @@ jobs:
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: ${{ env.node-version }}
- run: npm install -g npm@${{ env.npm-version }}
- uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6.0.0
- run: npm ci -w pkgs/docs
- run: npm run build -w pkgs/docs
Expand All @@ -27,6 +37,9 @@ jobs:
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: ${{ env.node-version }}
- run: npm install -g npm@${{ env.npm-version }}
- run: npm ci
- run: npm run build -w pkgs/typed-api-spec
- run: npm test -w examples/misc
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/doc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

env:
node-version: 24.20.0
npm-version: 11.19.0

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
Expand All @@ -30,6 +34,9 @@ jobs:
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: ${{ env.node-version }}
- run: npm install -g npm@${{ env.npm-version }}
- uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6.0.0
- run: npm ci -w pkgs/docs
- run: npm run build -w pkgs/docs
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ on:
push:
tags:
- "v*.*.*"
env:
node-version: 24.20.0
npm-version: 11.19.0
jobs:
release:
runs-on: ubuntu-latest
Expand All @@ -24,8 +27,9 @@ jobs:
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: '24'
node-version: ${{ env.node-version }}
registry-url: 'https://registry.npmjs.org'
- run: npm install -g npm@${{ env.npm-version }}
- run: npm ci
- run: npm run build -w pkgs/typed-api-spec
- run: npm publish -w pkgs/typed-api-spec --access public --provenance
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{
"engines": {
"node": "24.20.0",
"npm": "11.19.0"
},
"workspaces": [
"pkgs/*",
"examples/*"
Expand Down