mirror of
https://github.com/ivuorinen/actions.git
synced 2026-03-21 17:01:31 +00:00
Update SHA-pinned action references to latest versions: - github/codeql-action v4.32.6 → v4.33.0 - nick-fields/retry v3.0.2 → v4.0.0 - actions/cache v5.0.3 → v5.0.4 - oven-sh/setup-bun v2.1.3 → v2.2.0 - softprops/action-gh-release v2.5.0 → v2.6.1 - github/issue-metrics v4.1.0 → v4.1.1 - shivammathur/setup-php 2.36.0 → 2.37.0 - astral-sh/setup-uv v7.5.0 → v7.6.0 - terraform-linters/setup-tflint v6.2.1 → v6.2.2 - aquasecurity/trivy-action: pin from master to v0.35.0 Fix pinact warning in docker-build by adding missing v prefix to trivy-action version comment (0.35.0 → v0.35.0).
ivuorinen/actions/npm-publish
Publish to NPM
Description
Publishes the package to the NPM registry with configurable scope and registry URL.
Inputs
| name | description | required | default |
|---|---|---|---|
npm_token |
NPM token. |
true |
"" |
registry-url |
Registry URL for publishing. |
false |
https://registry.npmjs.org/ |
scope |
Package scope to use. |
false |
@ivuorinen |
package-version |
The version to publish. |
false |
${{ github.event.release.tag_name }} |
token |
GitHub token for authentication |
false |
"" |
Outputs
| name | description |
|---|---|
registry-url |
Registry URL for publishing. |
scope |
Package scope to use. |
package-version |
The version to publish. |
Runs
This action is a composite action.
Usage
- uses: ivuorinen/actions/npm-publish@main
with:
npm_token:
# NPM token.
#
# Required: true
# Default: ""
registry-url:
# Registry URL for publishing.
#
# Required: false
# Default: https://registry.npmjs.org/
scope:
# Package scope to use.
#
# Required: false
# Default: @ivuorinen
package-version:
# The version to publish.
#
# Required: false
# Default: ${{ github.event.release.tag_name }}
token:
# GitHub token for authentication
#
# Required: false
# Default: ""