File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 push :
55 branches :
66 - master
7+ pull_request :
8+ branches :
9+ - master
10+ permissions :
11+ contents : read
712jobs :
8- release :
9- name : Build and publish
13+ build :
14+ name : Build, test, and package
1015 runs-on : ubuntu-latest
11- if : " !contains(github.event.head_commit.message, '[skip ci]')"
16+ if : " github.event_name != 'push' || !contains(github.event.head_commit.message, '[skip ci]')"
1217 steps :
1318 - name : Checkout
1419 uses : actions/checkout@v7
15- with :
16- ref : ${{ github.head_ref }}
17- token : ${{ secrets.GITHUB_TOKEN }}
1820 - name : Setup Node.js
1921 uses : actions/setup-node@v7
2022 with :
21- node-version : " lts/* "
23+ node-version : " 24.x "
2224 - name : Cache node modules
2325 uses : actions/cache@v6
2426 env :
3840 run : npm run test
3941 - name : Build package
4042 run : npm run package
43+ publish :
44+ name : Publish package
45+ needs : build
46+ if : " github.event_name == 'push' && github.ref == 'refs/heads/master' && !contains(github.event.head_commit.message, '[skip ci]')"
47+ permissions :
48+ contents : write
49+ runs-on : ubuntu-latest
50+ steps :
51+ - name : Checkout
52+ uses : actions/checkout@v7
53+ - name : Setup Node.js
54+ uses : actions/setup-node@v7
55+ with :
56+ node-version : " 24.x"
57+ - name : Install dependencies
58+ run : npm ci
59+ - name : Build package
60+ run : npm run build && npm run package
4161 - name : Publish package
4262 uses : stefanzweifel/git-auto-commit-action@v7
4363 with :
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: "Stethoscope"
22description : " Track, visualize, and embed your health and life data"
33author : " Stethoscoper <https://github.com/stethoscoper>"
44runs :
5- using : " node16 "
5+ using : " node24 "
66 main : " dist/index.js"
77branding :
88 icon : " umbrella"
You can’t perform that action at this time.
0 commit comments