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.
- package/.github/workflows/npm-publish.yml +30 -0
- package/README.md +1 -1
- package/package.json +8 -7
- package/script/test +1 -1
- package/.release-it.json +0 -8
|
@@ -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
|
|
1
|
+
# Hubot Nextbus
|
|
2
2
|
|
|
3
3
|
[](http://badge.fury.io/js/hubot-nextbus) [](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.
|
|
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": "
|
|
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.
|
|
33
|
-
"
|
|
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
|
-
"
|
|
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