mirror of
https://github.com/zhigang1992/example-npm.git
synced 2026-06-12 08:05:26 +08:00
Co-authored-by: Steve Winton <stevewinton@gmail.com> Co-authored-by: Steve Winton <swinton@users.noreply.github.com> Co-authored-by: Brandon Keepers <bkeepers@github.com>
786 B
786 B
npm GitHub Action Example
An example workflow, using the GitHub Action for npm to build, test, and publish an npm module, @scrabblescore/scrabblescore.
Workflow
The example workflow will trigger on every push to this repo.
For pushes to a feature branch, the workflow will:
- Run
npm install, to install the module's prerequisites - 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:
- Run
npm publish, to release the module to the world
License
This repository is licensed under CC0-1.0, which waives all copyright restrictions.