Commit effc51c
committed
feat: improve publish workflow with tests and caching
Changes:
- Changed trigger from 'created' to 'published' (more standard)
- Added test run before publishing to ensure quality
- Added npm cache for faster dependency installation
- Tests must pass before package is published to npm
To use this workflow:
1. Go to GitHub Settings > Secrets and variables > Actions
2. Add a new secret named NPM_TOKEN
3. Get your npm automation token from https://www.npmjs.com/settings/tokens
4. Create releases on GitHub and they will auto-publish to npm1 parent 29a13af commit effc51c
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
23 | 27 | | |
24 | 28 | | |
25 | 29 | | |
| |||
0 commit comments