@pulsehub/runner 0.1.1 → 0.1.2
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/ci.yml
CHANGED
|
@@ -20,30 +20,43 @@ jobs:
|
|
|
20
20
|
outputs:
|
|
21
21
|
version: ${{ steps.bump.outputs.version }}
|
|
22
22
|
steps:
|
|
23
|
-
- uses: actions/checkout@
|
|
23
|
+
- uses: actions/checkout@v7
|
|
24
24
|
with:
|
|
25
25
|
ref: main
|
|
26
26
|
fetch-depth: 0
|
|
27
|
-
- uses: actions/setup-node@
|
|
27
|
+
- uses: actions/setup-node@v7
|
|
28
28
|
with:
|
|
29
29
|
node-version: 24
|
|
30
|
+
package-manager-cache: false
|
|
30
31
|
- run: npm test
|
|
31
32
|
- run: node src/index.js --help
|
|
32
33
|
- name: Bump patch version and tag the release
|
|
33
34
|
id: bump
|
|
34
35
|
shell: bash
|
|
35
36
|
run: |
|
|
36
|
-
npm version patch --no-git-tag-version
|
|
37
37
|
version="$(node -p 'require("./package.json").version')"
|
|
38
|
-
|
|
38
|
+
published_version="$(npm view @pulsehub/runner version)"
|
|
39
39
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
40
|
+
if [ "${version}" = "${published_version}" ]; then
|
|
41
|
+
npm version patch --no-git-tag-version
|
|
42
|
+
version="$(node -p 'require("./package.json").version')"
|
|
43
|
+
tag="v${version}"
|
|
44
|
+
|
|
45
|
+
git config user.name "github-actions[bot]"
|
|
46
|
+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
|
47
|
+
git add package.json
|
|
48
|
+
git commit -m "chore(release): ${tag} [skip ci]"
|
|
49
|
+
git tag "${tag}"
|
|
50
|
+
git push origin HEAD:main
|
|
51
|
+
git push origin "${tag}"
|
|
52
|
+
else
|
|
53
|
+
tag="v${version}"
|
|
54
|
+
echo "npm latest is ${published_version}; retrying unpublished repository version ${version}."
|
|
55
|
+
if ! git rev-parse --verify "refs/tags/${tag}" >/dev/null 2>&1; then
|
|
56
|
+
git tag "${tag}"
|
|
57
|
+
git push origin "${tag}"
|
|
58
|
+
fi
|
|
59
|
+
fi
|
|
47
60
|
|
|
48
61
|
echo "version=${version}" >> "$GITHUB_OUTPUT"
|
|
49
62
|
|
|
@@ -55,13 +68,16 @@ jobs:
|
|
|
55
68
|
contents: read
|
|
56
69
|
id-token: write
|
|
57
70
|
steps:
|
|
58
|
-
- uses: actions/checkout@
|
|
71
|
+
- uses: actions/checkout@v7
|
|
59
72
|
with:
|
|
60
73
|
ref: v${{ needs.version.outputs.version }}
|
|
61
|
-
- uses: actions/setup-node@
|
|
74
|
+
- uses: actions/setup-node@v7
|
|
62
75
|
with:
|
|
63
76
|
node-version: 24
|
|
64
77
|
registry-url: https://registry.npmjs.org
|
|
78
|
+
package-manager-cache: false
|
|
79
|
+
- name: Show Node and npm versions
|
|
80
|
+
run: node --version && npm --version
|
|
65
81
|
- name: Verify version tag
|
|
66
82
|
run: test "v$(node -p 'require("./package.json").version')" = "v${{ needs.version.outputs.version }}"
|
|
67
83
|
- run: npm publish --access public
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulsehub/runner",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Local, credential-safe Pulse Runner",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
},
|
|
12
12
|
"type": "module",
|
|
13
13
|
"bin": {
|
|
14
|
-
"pulse-runner": "
|
|
14
|
+
"pulse-runner": "src/index.js"
|
|
15
15
|
},
|
|
16
16
|
"engines": {
|
|
17
17
|
"node": ">=20"
|