mirror of
https://github.com/ivuorinen/actions.git
synced 2026-02-09 22:45:46 +00:00
Address cache key quality issues identified during code review.
php-composer:
- Remove unused cache-directories input and handling code
- Simplify cache paths to vendor + ~/.composer/cache only
- Eliminate empty path issue when cache-directories was default empty
npm-publish:
- Remove redundant -npm- segment from cache key
- Change: runner.os-npm-publish-{manager}-npm-{hash}
- To: runner.os-npm-publish-{manager}-{hash}
go-lint:
- Add ~/.cache/go-build to cached paths
- Now caches both golangci-lint and Go build artifacts
- Improves Go build performance
Result: Cleaner cache keys and better caching coverage
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: ""