Skip to content

Commit 8575e48

Browse files
authored
Merge pull request #60 from ateliee/devin/1750396560-update-travis-and-package-version
feat: update Travis CI Node.js versions and fix README badge
2 parents c8f0edb + b358638 commit 8575e48

File tree

5 files changed

+117
-43
lines changed

5 files changed

+117
-43
lines changed

.github/workflows/ci.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
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

.github/workflows/release.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
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 }}

.travis.yml

Lines changed: 0 additions & 41 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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",

0 commit comments

Comments
 (0)