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
2 changes: 1 addition & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- uses: actions/setup-node@v6
if: steps.vars.outputs.diff == 1 && github.ref == 'refs/heads/main'
with:
node-version: '20'
node-version: '24'
registry-url: 'https://npm.pkg.github.com'
scope: '@linode'
- name: Build and publish clients
Expand Down
8 changes: 7 additions & 1 deletion .husky/post-checkout
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
npx run-if-changed
#!/bin/sh

# Check if package-lock.json changed during rewrite (e.g., git rebase)
if git diff --name-only HEAD@{1} HEAD 2>/dev/null | grep -q "^package-lock.json$"; then
echo "📦 package-lock.json changed, running npm install..."
npm install --prefer-offline --no-audit
fi
8 changes: 7 additions & 1 deletion .husky/post-merge
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
npx run-if-changed
#!/bin/sh

# Check if package-lock.json changed during rewrite (e.g., git rebase)
if git diff --name-only HEAD@{1} HEAD 2>/dev/null | grep -q "^package-lock.json$"; then
echo "📦 package-lock.json changed, running npm install..."
npm install --prefer-offline --no-audit
fi
8 changes: 7 additions & 1 deletion .husky/post-rewrite
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
npx run-if-changed
#!/bin/sh

# Check if package-lock.json changed during rewrite (e.g., git rebase)
if git diff --name-only HEAD@{1} HEAD 2>/dev/null | grep -q "^package-lock.json$"; then
echo "📦 package-lock.json changed, running npm install..."
npm install --prefer-offline --no-audit
fi
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v20.18
v24
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ Factory to build and publish openapi clients used in the [linode/apl-tasks](http
To build and publish new vendor clients, just download and inspect their openapi spec if it is suitable, then integrate it.

Steps:

- locate the updated OpenAPI definition (in browser, as some require authentication):
- Gitea: https://gitea.<your-cluster-suffix>/swagger.v1.json
- Keycloak: https://www.keycloak.org/docs-api/<version>/rest-api/openapi.json
- Harbor: https://harbor.<your-cluster-suffix>/swagger.json
- put the api spec in `src/vendors/openapi/$vendor/*.json`
- add a line in `bin/generate-all.sh` to include your package
- make sure the credentials used in `.github/workflows/default.yaml` have rights to publish that package
Expand Down
Loading