File tree Expand file tree Collapse file tree 2 files changed +52
-1
lines changed
Expand file tree Collapse file tree 2 files changed +52
-1
lines changed Original file line number Diff line number Diff line change 1+ name : " CD: Release version on tag push"
2+
3+ on :
4+ push :
5+ tags :
6+ - " v*" # Triggers only on tags starting with 'v' (e.g. v1.0.0, v2.1.3)
7+
8+ jobs :
9+ release :
10+ runs-on : ubuntu-latest
11+ permissions :
12+ contents : write # Required to create the GitHub Release
13+
14+ strategy :
15+ matrix :
16+ # "node_js: - stable" logic (Node 24 is current LTS/stable)
17+ node-version : [24.x]
18+
19+ steps :
20+ - name : Checkout code
21+ uses : actions/checkout@v4
22+
23+ - name : Set up Node.js ${{ matrix.node-version }}
24+ uses : actions/setup-node@v4
25+ with :
26+ node-version : ${{ matrix.node-version }}
27+ cache : " yarn" # Automatic caching for Yarn
28+ registry-url : " https://registry.npmjs.org"
29+
30+ - name : Install dependencies
31+ # --frozen-lockfile ensures yarn.lock is respected exactly
32+ run : yarn install --frozen-lockfile
33+
34+ - name : Build
35+ # Ensure you build your project before publishing!
36+ run : yarn build
37+ # If you don't have a build script, you can remove this step.
38+
39+ - name : Publish to NPM
40+ run : npm publish --provenance --access public
41+
42+ - name : Create GitHub Release
43+ uses : softprops/action-gh-release@v2
44+ with :
45+ # Uses the tag name for the release title
46+ name : Release ${{ github.ref_name }}
47+ generate_release_notes : true
48+ draft : true
49+ prerelease : false
50+ env :
51+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 11{
22 "name" : " sequelize-guard" ,
3- "version" : " 6.0.1" ,
3+ "version" : " 6.0.1-dev.1 " ,
44 "description" : " An Authorization Library for Sequelize" ,
55 "repository" : {
66 "type" : " git" ,
You can’t perform that action at this time.
0 commit comments