hubot-nextbus 2.1.3 → 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.
@@ -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,4 +1,4 @@
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
 
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.3",
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,7 +21,7 @@
21
21
  "url": "https://github.com/transitnownash/hubot-nextbus/issues"
22
22
  },
23
23
  "peerDependencies": {
24
- "hubot": "^3 || ^4"
24
+ "hubot": ">=3 || 0.0.0-development"
25
25
  },
26
26
  "devDependencies": {
27
27
  "chai": "^4.3.7",
@@ -29,19 +29,20 @@
29
29
  "hubot-test-helper": "^1.9.0",
30
30
  "husky": "^8.0.3",
31
31
  "mocha": "^10.2.0",
32
- "nock": "^13.3.1",
33
- "release-it": "^15.11.0",
34
- "sinon": "^15.1.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
- }