teveltech/Composite NPM Packaging Action
A composite action for packaging Node.js applications with npm/pkg
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| node-version | Node.js version to use | no | 20 |
| registry-url | npm registry URL | no | https://npm.pkg.github.com |
| package-dir | Directory containing package.json | no | . |
| package-command | Command to package the application | no | npm run package |
| test-command | Command to test the application | no | npm test |
| publish-command | Command to publish the package | no | npm publish |
| token | NPM token for publishing | yes | — |
| tag | NPM tag to use when publishing | no | latest |
| new-tag | Version to set in package.json | no | — |
| scope | NPM scope (without @) | no | — |
| access | Access level (public or restricted) | no | public |
| skip-tests | Skip running tests | no | false |
| skip-publish | Skip publishing to npm | no | false |
| skip-pkg | Skip pkg executable packaging (for library packages) | no | false |
| pre-publish-script | Script to run before publishing | no | — |
| pkg-targets | Comma-separated list of pkg targets (e.g., node18-linux-x64,node18-win-x64) | no | — |
| pkg-output-dir | Output directory for packaged binaries | no | dist |
| entry-point | Entry point for pkg (defaults to package.json main) | no | — |
| registry-auth-prefix | Override auth host/path for npmrc (e.g., jfrog.local:8081/artifactory/api/npm/tevel-npm/) | no | — |
| skip-if-exists | Skip publish if version already exists in the registry | no | false |
Outputs
| name | description |
|---|---|
| version | The version of the published package |
| package-name | The name of the published package |
| package-full | The full name and version of the published package |
| binaries-dir | Directory containing the packaged binaries |