diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ee18792924b..e752885c928 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -296,7 +296,7 @@ jobs: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} publish-nitro-cli-platforms: - name: 🧱 Publish Nitro CLI (${{ matrix.rid }}) to npm + name: 🧱 Publish Nitro CLI binary to npm runs-on: ubuntu-latest needs: [build-nitro-cli] if: startsWith(github.ref, 'refs/tags/') @@ -305,21 +305,14 @@ jobs: id-token: write strategy: matrix: - include: - - rid: linux-x64 - binary: nitro - - rid: linux-musl-x64 - binary: nitro - - rid: linux-arm64 - binary: nitro - - rid: osx-x64 - binary: nitro - - rid: osx-arm64 - binary: nitro - - rid: win-x64 - binary: nitro.exe - - rid: win-x86 - binary: nitro.exe + rid: + - linux-x64 + - linux-musl-x64 + - linux-arm64 + - osx-x64 + - osx-arm64 + - win-x64 + - win-x86 steps: - name: 📦 Checkout @@ -354,8 +347,8 @@ jobs: *.tar.gz) tar -xzf "$archive" ;; *.zip) unzip -q "$archive" ;; esac - if [ "${{ matrix.binary }}" = "nitro" ]; then - chmod +x "${{ matrix.binary }}" + if [[ "${{ matrix.rid }}" != win-* ]]; then + chmod +x nitro fi - name: 🏷️ Set version @@ -372,7 +365,8 @@ jobs: run: | npm publish "./chillicream-nitro-${{ matrix.rid }}-${GIT_TAG}.tgz" \ --access public \ - --registry="${{ vars.NPM_REGISTRY_URL }}" + --registry="${{ vars.NPM_REGISTRY_URL }}" \ + --tag latest - name: 📤 Upload tarball as artifact uses: actions/upload-artifact@v7 diff --git a/src/Nitro/CommandLine/src/npm/chillicream-nitro-linux-arm64/README.md b/src/Nitro/CommandLine/src/npm/chillicream-nitro-linux-arm64/README.md new file mode 100644 index 00000000000..5e66d1ebcd2 --- /dev/null +++ b/src/Nitro/CommandLine/src/npm/chillicream-nitro-linux-arm64/README.md @@ -0,0 +1,5 @@ +# @chillicream/nitro-linux-arm64 + +This package contains the platform-specific binary for `linux-arm64` (glibc). + +Use [@chillicream/nitro](https://www.npmjs.com/package/@chillicream/nitro) to invoke the Nitro CLI. diff --git a/src/Nitro/CommandLine/src/npm/chillicream-nitro-linux-musl-x64/README.md b/src/Nitro/CommandLine/src/npm/chillicream-nitro-linux-musl-x64/README.md new file mode 100644 index 00000000000..2a9df2b333b --- /dev/null +++ b/src/Nitro/CommandLine/src/npm/chillicream-nitro-linux-musl-x64/README.md @@ -0,0 +1,5 @@ +# @chillicream/nitro-linux-musl-x64 + +This package contains the platform-specific binary for `linux-musl-x64`. + +Use [@chillicream/nitro](https://www.npmjs.com/package/@chillicream/nitro) to invoke the Nitro CLI. diff --git a/src/Nitro/CommandLine/src/npm/chillicream-nitro-linux-x64/README.md b/src/Nitro/CommandLine/src/npm/chillicream-nitro-linux-x64/README.md new file mode 100644 index 00000000000..21c2fefc90a --- /dev/null +++ b/src/Nitro/CommandLine/src/npm/chillicream-nitro-linux-x64/README.md @@ -0,0 +1,5 @@ +# @chillicream/nitro-linux-x64 + +This package contains the platform-specific binary for `linux-x64` (glibc). + +Use [@chillicream/nitro](https://www.npmjs.com/package/@chillicream/nitro) to invoke the Nitro CLI. diff --git a/src/Nitro/CommandLine/src/npm/chillicream-nitro-osx-arm64/README.md b/src/Nitro/CommandLine/src/npm/chillicream-nitro-osx-arm64/README.md new file mode 100644 index 00000000000..6fed73fd4ef --- /dev/null +++ b/src/Nitro/CommandLine/src/npm/chillicream-nitro-osx-arm64/README.md @@ -0,0 +1,5 @@ +# @chillicream/nitro-osx-arm64 + +This package contains the platform-specific binary for `osx-arm64`. + +Use [@chillicream/nitro](https://www.npmjs.com/package/@chillicream/nitro) to invoke the Nitro CLI. diff --git a/src/Nitro/CommandLine/src/npm/chillicream-nitro-osx-x64/README.md b/src/Nitro/CommandLine/src/npm/chillicream-nitro-osx-x64/README.md new file mode 100644 index 00000000000..7aa4682fbdb --- /dev/null +++ b/src/Nitro/CommandLine/src/npm/chillicream-nitro-osx-x64/README.md @@ -0,0 +1,5 @@ +# @chillicream/nitro-osx-x64 + +This package contains the platform-specific binary for `osx-x64`. + +Use [@chillicream/nitro](https://www.npmjs.com/package/@chillicream/nitro) to invoke the Nitro CLI. diff --git a/src/Nitro/CommandLine/src/npm/chillicream-nitro-win-x64/README.md b/src/Nitro/CommandLine/src/npm/chillicream-nitro-win-x64/README.md new file mode 100644 index 00000000000..af7637cdc04 --- /dev/null +++ b/src/Nitro/CommandLine/src/npm/chillicream-nitro-win-x64/README.md @@ -0,0 +1,5 @@ +# @chillicream/nitro-win-x64 + +This package contains the platform-specific binary for `win-x64`. + +Use [@chillicream/nitro](https://www.npmjs.com/package/@chillicream/nitro) to invoke the Nitro CLI. diff --git a/src/Nitro/CommandLine/src/npm/chillicream-nitro-win-x86/README.md b/src/Nitro/CommandLine/src/npm/chillicream-nitro-win-x86/README.md new file mode 100644 index 00000000000..fb25f3d66a7 --- /dev/null +++ b/src/Nitro/CommandLine/src/npm/chillicream-nitro-win-x86/README.md @@ -0,0 +1,5 @@ +# @chillicream/nitro-win-x86 + +This package contains the platform-specific binary for `win-x86`. + +Use [@chillicream/nitro](https://www.npmjs.com/package/@chillicream/nitro) to invoke the Nitro CLI. diff --git a/src/Nitro/CommandLine/src/npm/chillicream-nitro/README.md b/src/Nitro/CommandLine/src/npm/chillicream-nitro/README.md index 6147ce3500f..75c1ca77493 100644 --- a/src/Nitro/CommandLine/src/npm/chillicream-nitro/README.md +++ b/src/Nitro/CommandLine/src/npm/chillicream-nitro/README.md @@ -1,5 +1,52 @@ # @chillicream/nitro -A CLI to interact with [Nitro](https://chillicream.com/products/nitro). +The official CLI for ChilliCream's [Nitro](https://chillicream.com/products/nitro). -For a full list of commands either run `npx @chillicream/nitro --help` or see the [documentation](https://chillicream.com/docs/nitro/cli-commands/api-key). +## Usage + +Run the CLI directly with your package manager of choice: + +```bash +# npm +npx @chillicream/nitro@latest --help + +# yarn +yarn dlx @chillicream/nitro@latest --help + +# pnpm +pnpm dlx @chillicream/nitro@latest --help +``` + +## GitHub Actions + +If you want to invoke the CLI from a GitHub Actions workflow, use our official actions instead of installing the CLI manually: + +### Schema + +- [Nitro Schema Publish](https://github.com/marketplace/actions/nitro-schema-publish) +- [Nitro Schema Upload](https://github.com/marketplace/actions/nitro-schema-upload) +- [Nitro Schema Validate](https://github.com/marketplace/actions/nitro-schema-validate) + +### Client + +- [Nitro Client Publish](https://github.com/marketplace/actions/nitro-client-publish) +- [Nitro Client Upload](https://github.com/marketplace/actions/nitro-client-upload) +- [Nitro Client Validate](https://github.com/marketplace/actions/nitro-client-validate) + +### Fusion + +- [Nitro Fusion Publish](https://github.com/marketplace/actions/nitro-fusion-publish) +- [Nitro Fusion Upload](https://github.com/marketplace/actions/nitro-fusion-upload) +- [Nitro Fusion Validate](https://github.com/marketplace/actions/nitro-fusion-validate) + +### MCP + +- [Nitro MCP Publish](https://github.com/marketplace/actions/nitro-mcp-publish) +- [Nitro MCP Upload](https://github.com/marketplace/actions/nitro-mcp-upload) +- [Nitro MCP Validate](https://github.com/marketplace/actions/nitro-mcp-validate) + +### OpenAPI + +- [Nitro OpenAPI Publish](https://github.com/marketplace/actions/nitro-openapi-publish) +- [Nitro OpenAPI Upload](https://github.com/marketplace/actions/nitro-openapi-upload) +- [Nitro OpenAPI Validate](https://github.com/marketplace/actions/nitro-openapi-validate)