https://github.com/stipsan/example-npm
An example GitHub Action using npm
https://github.com/stipsan/example-npm
Last synced: 9 months ago
JSON representation
An example GitHub Action using npm
- Host: GitHub
- URL: https://github.com/stipsan/example-npm
- Owner: stipsan
- License: cc0-1.0
- Created: 2018-10-21T20:32:14.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T05:55:21.000Z (over 2 years ago)
- Last Synced: 2025-01-13T07:28:11.743Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 71.3 KB
- Stars: 1
- Watchers: 2
- Forks: 112
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# npm GitHub Action Example
An example workflow, using [the GitHub Action for npm](https://github.com/actions/npm) to build, test, and publish an npm module, [`@scrabblescore/scrabblescore`](https://www.npmjs.com/package/@scrabblescore/scrabblescore).
## Workflow
The [example workflow](.github/main.workflow) will trigger on every push to this repo.
For pushes to a _feature_ branch, the workflow will:
1. Run `npm install`, to install the module's prerequisites
1. Run `npm test`, to run the module's unit tests
For pushes to the _default_ branch (`master`), in addition to the above Actions, the workflow will:
1. Run `npm publish`, to release the module to the world
## License
This repository is [licensed under CC0-1.0](LICENSE), which waives all copyright restrictions.