File tree Expand file tree Collapse file tree 5 files changed +117
-43
lines changed
Expand file tree Collapse file tree 5 files changed +117
-43
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ branches : [ master, main ]
6+ pull_request :
7+ branches : [ master, main ]
8+
9+ jobs :
10+ test :
11+ runs-on : ubuntu-latest
12+ strategy :
13+ matrix :
14+ node-version : [20, 22, 24]
15+
16+ steps :
17+ - uses : actions/checkout@v4
18+
19+ - name : Use Node.js ${{ matrix.node-version }}
20+ uses : actions/setup-node@v4
21+ with :
22+ node-version : ${{ matrix.node-version }}
23+ cache : ' npm'
24+
25+ - name : Install dependencies
26+ run : npm ci
27+
28+ - name : Run tests
29+ run : |
30+ echo "Running tests against $(node -v) ..."
31+ npm test
32+
33+ - name : Build
34+ run : npm run build
35+
36+ lint :
37+ runs-on : ubuntu-latest
38+
39+ steps :
40+ - uses : actions/checkout@v4
41+
42+ - name : Use Node.js
43+ uses : actions/setup-node@v4
44+ with :
45+ node-version : ' 22'
46+ cache : ' npm'
47+
48+ - name : Install dependencies
49+ run : npm ci
50+
51+ - name : Run lint
52+ run : |
53+ echo "lint start"
54+ npm run lint
Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ push :
5+ branches : [ master ]
6+
7+ jobs :
8+ github-package-release :
9+ runs-on : ubuntu-latest
10+ if : github.ref == 'refs/heads/master'
11+
12+ steps :
13+ - uses : actions/checkout@v4
14+
15+ - name : Use Node.js
16+ uses : actions/setup-node@v4
17+ with :
18+ node-version : ' 22'
19+ cache : ' npm'
20+ registry-url : ' https://npm.pkg.github.com'
21+ scope : ' @ateliee'
22+
23+ - name : Install dependencies
24+ run : npm ci
25+
26+ - name : Build
27+ run : |
28+ echo "Deploying to github ..."
29+ npm run build
30+
31+ - name : Publish to GitHub Package Registry
32+ run : npm publish
33+ env :
34+ NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
35+
36+ npm-package-release :
37+ runs-on : ubuntu-latest
38+ if : github.ref == 'refs/heads/master'
39+
40+ steps :
41+ - uses : actions/checkout@v4
42+
43+ - name : Use Node.js
44+ uses : actions/setup-node@v4
45+ with :
46+ node-version : ' 22'
47+ cache : ' npm'
48+ registry-url : ' https://registry.npmjs.org'
49+
50+ - name : Install dependencies
51+ run : npm ci
52+
53+ - name : Build
54+ run : |
55+ echo "Deploying to npm ..."
56+ npm run build
57+
58+ - name : Publish to NPM Registry
59+ run : npm publish --access public
60+ env :
61+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ jq.Schedule
22===============
33
44[ ![ npm version] ( https://badge.fury.io/js/jq.schedule.svg )] ( https://badge.fury.io/js/jq.schedule )
5- [ ![ Build Status ] ( https://travis-ci .com/ateliee/jquery.schedule.svg?branch=master )] ( https://travis-ci .com/ateliee/jquery.schedule )
5+ [ ![ CI ] ( https://github .com/ateliee/jquery.schedule/workflows/CI/badge .svg )] ( https://github .com/ateliee/jquery.schedule/actions )
66![ License: MIT] ( https://img.shields.io/badge/License-MIT-green.svg )
77
88![ ] ( docs/img/preview.png )
Original file line number Diff line number Diff line change 11{
22 "name" : " @ateliee/jq.schedule" ,
3- "version" : " 4.0.0 " ,
3+ "version" : " 4.0.1 " ,
44 "description" : " jQuery time schedule plugin" ,
55 "main" : " src/js/jq.schedule.js" ,
66 "types" : " src/@types/jq.schedule.d.ts" ,
You can’t perform that action at this time.
0 commit comments