hubot-nextbus 2.1.2 → 2.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,19 +8,28 @@ jobs:
8
8
  runs-on: ubuntu-latest
9
9
 
10
10
  strategy:
11
+ fail-fast: false
11
12
  matrix:
12
- node-version: [12.x, 14.x, 16.x]
13
+ node-version: [16.x, 18.x, 20.x]
13
14
 
14
15
  steps:
15
- - uses: actions/checkout@v1
16
+ - uses: actions/checkout@v3
17
+
16
18
  - name: Use Node.js ${{ matrix.node-version }}
17
- uses: actions/setup-node@v1
19
+ uses: actions/setup-node@v3
18
20
  with:
19
21
  node-version: ${{ matrix.node-version }}
20
- - name: npm install, build, and test
22
+
23
+ - name: npm install, build
21
24
  run: |
22
25
  npm ci
23
26
  npm run build --if-present
27
+ env:
28
+ CI: true
29
+
30
+ - name: npm test
31
+ run: |
24
32
  npm test
25
33
  env:
26
34
  CI: true
35
+
@@ -0,0 +1,30 @@
1
+ on:
2
+ push:
3
+ branches: main
4
+
5
+ name: npm-publish
6
+
7
+ permissions:
8
+ contents: write
9
+
10
+ jobs:
11
+ publish:
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - uses: actions/checkout@v4
15
+ - uses: actions/setup-node@v3
16
+ with:
17
+ node-version: "20"
18
+ - run: npm ci
19
+ - run: npm test
20
+ - uses: JS-DevTools/npm-publish@v3
21
+ id: publish
22
+ with:
23
+ token: ${{ secrets.NPM_AUTH_TOKEN }}
24
+ - if: ${{ steps.publish.outputs.type }}
25
+ name: Create Release
26
+ env:
27
+ GH_TOKEN: ${{ github.token }}
28
+ run: |
29
+ VERSION="v${{ steps.publish.outputs.version }}"
30
+ gh release create $VERSION --generate-notes
package/README.md CHANGED
@@ -1,8 +1,8 @@
1
- # Hubot Nextbus (Nashville)
1
+ # Hubot Nextbus
2
2
 
3
3
  [![npm version](https://badge.fury.io/js/hubot-nextbus.svg)](http://badge.fury.io/js/hubot-nextbus) [![Node CI](https://github.com/transitnownash/hubot-nextbus/actions/workflows/nodejs.yml/badge.svg)](https://github.com/transitnownash/hubot-nextbus/actions/workflows/nodejs.yml)
4
4
 
5
- This Hubot package works with . You provide an API key and a latitude and longitude for it to obtain the next expect bus to a particular set of nearby stops.
5
+ This Hubot package works with [gtfs-rails-api](https://github.com/transitnownash/gtfs-rails-api). You provide an endpoint along with a latitude and longitude for it to obtain the next expected bus to a particular set of nearby stops.
6
6
 
7
7
  ## Installation
8
8
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hubot-nextbus",
3
3
  "description": "Shows when the next transit vehicle will arrive at a particular stop.",
4
- "version": "2.1.2",
4
+ "version": "2.1.4",
5
5
  "author": "Stephen Yeargin <stephen@yearg.in>",
6
6
  "homepage": "https://github.com/transitnownash/hubot-nextbus",
7
7
  "license": "MIT",
@@ -21,27 +21,28 @@
21
21
  "url": "https://github.com/transitnownash/hubot-nextbus/issues"
22
22
  },
23
23
  "peerDependencies": {
24
- "hubot": "^3"
24
+ "hubot": ">=3 || 0.0.0-development"
25
25
  },
26
26
  "devDependencies": {
27
27
  "chai": "^4.3.7",
28
28
  "coffee-script": "^1.12.7",
29
29
  "hubot-test-helper": "^1.9.0",
30
- "husky": "^8.0.2",
31
- "mocha": "^10.1.0",
32
- "nock": "^13.2.9",
33
- "release-it": "^15.5.1",
34
- "sinon": "^15.0.0",
30
+ "husky": "^8.0.3",
31
+ "mocha": "^10.2.0",
32
+ "nock": "^13.3.2",
33
+ "sinon": "^15.2.0",
35
34
  "sinon-chai": "^3.7.0"
36
35
  },
37
36
  "main": "index.coffee",
38
37
  "scripts": {
39
- "release": "release-it",
40
- "test": "mocha --require coffee-script/register \"test/**/*.coffee\" --reporter spec",
38
+ "test": "script/test",
41
39
  "prepare": "husky install"
42
40
  },
43
41
  "dependencies": {
44
42
  "ascii-table": "^0.0.9",
45
43
  "moment": "^2.29.4"
44
+ },
45
+ "volta": {
46
+ "node": "18.19.0"
46
47
  }
47
48
  }
package/script/test CHANGED
@@ -3,4 +3,4 @@
3
3
  # bootstrap environment
4
4
  source script/bootstrap
5
5
 
6
- mocha --compilers coffee:coffee-script
6
+ mocha --require coffee-script/register \"test/**/*.coffee\" --reporter spec --exit
package/.release-it.json DELETED
@@ -1,8 +0,0 @@
1
- {
2
- "git": {
3
- "tagName": "v${version}"
4
- },
5
- "github": {
6
- "release": true
7
- }
8
- }