@canmingir/link-express 1.6.9 → 1.6.10
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.
|
@@ -46,7 +46,6 @@ jobs:
|
|
|
46
46
|
id: version_bump
|
|
47
47
|
run: |
|
|
48
48
|
npm version ${{ github.event.inputs.version_type }} -m "Bump version to %s [skip ci]"
|
|
49
|
-
echo "new_version=$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT
|
|
50
49
|
git push --follow-tags
|
|
51
50
|
|
|
52
51
|
- name: Publish to NPM
|
|
@@ -54,11 +53,4 @@ jobs:
|
|
|
54
53
|
run: npm publish --access public
|
|
55
54
|
env:
|
|
56
55
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
57
|
-
|
|
58
|
-
- name: Revert version bump on failure
|
|
59
|
-
if: failure() && steps.version_bump.outcome == 'success'
|
|
60
|
-
run: |
|
|
61
|
-
git reset --hard HEAD~1
|
|
62
|
-
git tag -d v${{ steps.version_bump.outputs.new_version }}
|
|
63
|
-
git push --force
|
|
64
|
-
git push --delete origin v${{ steps.version_bump.outputs.new_version }}
|
|
56
|
+
|
package/package.json
CHANGED
package/src/metrics/dbMetrics.js
CHANGED
|
@@ -48,7 +48,7 @@ class DBMetrics {
|
|
|
48
48
|
url: metrics.url || "http://localhost:9091",
|
|
49
49
|
jobName: metrics.pushGateway.jobName || "api",
|
|
50
50
|
instance: metrics.pushGateway.instance || "database",
|
|
51
|
-
interval:
|
|
51
|
+
interval: metrics.interval || 15000,
|
|
52
52
|
};
|
|
53
53
|
|
|
54
54
|
this.stopPushgateway();
|