fix: switch from secrets to inputs in npm-publish

This commit is contained in:
2025-02-09 03:08:12 +02:00
parent a44f1431dd
commit e4301e4e3c
2 changed files with 36 additions and 2 deletions

View File

@@ -13,6 +13,16 @@ Publishes the package to the NPM registry with configurable scope and registry U
| `registry-url` | <p>Registry URL for publishing.</p> | `false` | `https://registry.npmjs.org/` |
| `scope` | <p>Package scope to use.</p> | `false` | `@ivuorinen` |
| `package-version` | <p>The version to publish.</p> | `false` | `${{ github.event.release.tag_name }}` |
| `npm_token` | <p>NPM token.</p> | `true` | `""` |
### Outputs
| name | description |
|-------------------|-------------------------------------|
| `registry-url` | <p>Registry URL for publishing.</p> |
| `scope` | <p>Package scope to use.</p> |
| `package-version` | <p>The version to publish.</p> |
| `npm_token` | <p>NPM token.</p> |
### Runs
@@ -40,4 +50,10 @@ This action is a `composite` action.
#
# Required: false
# Default: ${{ github.event.release.tag_name }}
npm_token:
# NPM token.
#
# Required: true
# Default: ""
```