mirror of
https://github.com/ivuorinen/actions.git
synced 2026-03-13 20:58:43 +00:00
feat: add GitHub Actions workflows for code quality and automation (#2)
This commit is contained in:
43
npm-publish/README.md
Normal file
43
npm-publish/README.md
Normal file
@@ -0,0 +1,43 @@
|
||||
# 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 |
|
||||
| ----------------- | ----------------------------------- | -------- | -------------------------------------- |
|
||||
| `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 }}` |
|
||||
|
||||
### Runs
|
||||
|
||||
This action is a `composite` action.
|
||||
|
||||
### Usage
|
||||
|
||||
```yaml
|
||||
- uses: ivuorinen/actions/npm-publish@main
|
||||
with:
|
||||
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 }}
|
||||
```
|
||||
Reference in New Issue
Block a user