https://github.com/scientanl/release-npm-github-action
Release NPM Package Github Action
https://github.com/scientanl/release-npm-github-action
Last synced: 3 months ago
JSON representation
Release NPM Package Github Action
- Host: GitHub
- URL: https://github.com/scientanl/release-npm-github-action
- Owner: ScientaNL
- License: mit
- Created: 2021-03-22T12:48:39.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2023-05-16T07:51:28.000Z (about 3 years ago)
- Last Synced: 2024-12-31T19:48:43.199Z (over 1 year ago)
- Language: JavaScript
- Size: 397 KB
- Stars: 0
- Watchers: 6
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# release-npm-github-action
This Github action releases a new version of an NPM package whenever a new release is done on Github.
#### After a Github release is made, this action will;
- Commit to your repository, updating the package.json
- Release a new version of an npm package using npm publish
#### Example configuration
```yaml
name: Create release
on:
release:
types: [ created ]
jobs:
npm-version-publish:
name: NPM publish locking-cache
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: NPM version release
uses: ScientaNL/release-npm-github-action@1.2.1
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
npm-token: "${{ secrets.NPM_SCIENTA_TOKEN }}"
repository-owner: "ScientaNL"
npm-options: "{tag: 'latest', access: 'public'}"
```
see https://docs.npmjs.com/cli/v6/commands/npm-publish for more information.