File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed
Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ push :
5+ tags :
6+ - ' v*'
7+
8+ jobs :
9+ release :
10+ runs-on : ubuntu-latest
11+
12+ steps :
13+ - name : Checkout code
14+ uses : actions/checkout@v4
15+
16+ - name : Setup Node.js
17+ uses : actions/setup-node@v4
18+ with :
19+ node-version : 18
20+ registry-url : ' https://registry.npmjs.org/'
21+
22+ - name : Install dependencies
23+ run : npm ci
24+
25+ - name : Run tests
26+ run : npm run test
27+
28+ - name : Build
29+ run : npm run build && npm run docs
30+
31+ - name : Generate changelog
32+ run : npx auto-changelog -p --stdout > RELEASE_NOTES.md
33+
34+ - name : Publish to npm
35+ run : npm publish --access public
36+ env :
37+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
38+
39+ - name : Create GitHub Release
40+ uses : softprops/action-gh-release@v2
41+ with :
42+ body_path : RELEASE_NOTES.md
43+ env :
44+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments