connected-web/Publish NPM Package from OpenAPI Spec

Use an OpenAPI spec to generate and publish an npm package to the GitHub Package Registry

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
github-tokenGitHub token used to publish the package to the registry
client-idOAuth client ID used to fetch the OpenAPI spec from a URL
client-secretOAuth client secret used to fetch the OpenAPI spec from a URL
oauth-token-endpointOAuth token endpoint used to fetch an access token for fetching the OpenAPI spec from a URL
package-idID of the package to publish - should explicitly include @connected-web/ prefix otherwise the action will exit early
openapi-spec-filePath to the OpenAPI spec file to use for generating the package
openapi-spec-urlURL to the OpenAPI spec file to use for generating the package - uses an OAuth token based on client-id and client-secret to fetch the spec
versionVersion of the package to publish - should be a valid semver version. For branches other than main, this should be a pre-release version
preview-modeWhether to hold off on publishing the package to the registry. If true, the package will be built and tested but not published to the registryfalse
source-repo-idThe repository to use as the source for the action - used to search and replace values in the templateconnected-web/pnpfos
namedescription
package-idString containing the ID of the package that was published
published-versionString containing the actual version of the package that was published (after invalid semver characters were removed)