Skip to content

Ci/modernise actions - #38

Merged
ariesclark merged 19 commits into
mainfrom
ci/modernise-actions
Aug 9, 2026
Merged

Ci/modernise actions#38
ariesclark merged 19 commits into
mainfrom
ci/modernise-actions

Conversation

@ariesclark

Copy link
Copy Markdown
Member

No description provided.

Copilot AI lite review requested due to automatic review settings August 9, 2026 11:08

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR modernizes the repository’s generation and CI pipeline by removing the Node-based OpenAPI generator dependency and shifting generation/build steps to a reusable tooling setup, with updated GitHub Actions versions.

Changes:

  • Removed package.json / package-lock.json used to install @openapitools/openapi-generator-cli.
  • Updated generate.sh to invoke openapi-generator directly instead of the Node CLI wrapper.
  • Refactored .github/workflows/ci.yaml into generatebuildpublish jobs using artifacts, and updated action versions in workflows.

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
package.json Removed Node dependency previously used for OpenAPI generator CLI.
package-lock.json Removed lockfile associated with the removed Node dependency.
openapitools.json Removed schema path that depended on node_modules/ being present.
generate.sh Switched generator invocation from node_modules script to openapi-generator command.
.github/workflows/realtime-ci.yml Updated action versions used for the realtime SDK build/publish workflow.
.github/workflows/ci.yaml Reworked CI into generator/build/publish stages, added push/PR triggers, and switched to reusable generator setup + artifact passing.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread .github/workflows/ci.yaml
Comment on lines +39 to +42
- uses: actions/checkout@v7
with:
node-version: 22
repository: vrchatapi/vrchatapi-csharp
ref: ${{ inputs.ref || github.ref }}
Comment thread .github/workflows/ci.yaml
Comment on lines +29 to +31
env:
PASSED_VERSION: ${{ (github.event_name == 'repository_dispatch' && github.event.client_payload || fromJSON(inputs.json || '{}'))['version'] }}
VERSION_POSTPEND: ${{ github.event_name == 'workflow_dispatch' && inputs.version_postfix || '' }}
Comment thread .github/workflows/ci.yaml
Comment on lines +44 to +48
- uses: vrchatapi/specification/.github/actions/setup-generator@main

- uses: actions/checkout@v4
- name: 'Cache node_modules'
uses: actions/cache@v4
- uses: vrchatapi/specification/.github/actions/download@main
with:
path: node_modules
key: ${{ runner.os }}-node-v22-${{ hashFiles('**/generate.sh') }}
restore-keys: |
${{ runner.os }}-node-v22
bundle: openapi-legacy.yaml
Comment thread generate.sh
Comment on lines 9 to 12
rm src docs *.nupkg *.snupkg -rf

./node_modules/\@openapitools/openapi-generator-cli/main.js generate \
openapi-generator generate \
-g csharp \
Comment thread .github/workflows/ci.yaml
Comment on lines +65 to +69
- uses: actions/upload-artifact@v7
with:
name: csharp-generated
path: .
include-hidden-files: true
@ariesclark
ariesclark merged commit dd5e4e1 into main Aug 9, 2026
6 checks passed
@ariesclark
ariesclark deleted the ci/modernise-actions branch August 9, 2026 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants