@hearthlog/tooling 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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hearthlog/tooling",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"license": "AGPL-3.0-only",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"tsx": "^4.23.15",
|
|
31
|
-
"@hearthlog/contracts": "0.1.
|
|
31
|
+
"@hearthlog/contracts": "0.1.2"
|
|
32
32
|
},
|
|
33
33
|
"bin": {
|
|
34
34
|
"hearthlog": "./bin/hearthlog.mjs"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
name: Release
|
|
2
2
|
|
|
3
3
|
# Set "version" in package.json, commit, then push the tag `v<version>`. The publish job waits for approval in the
|
|
4
|
-
# protected `npm` environment; the
|
|
4
|
+
# protected `npm` environment; the package is published through npm's trusted publishing, so no registry token is stored.
|
|
5
5
|
on:
|
|
6
6
|
push:
|
|
7
7
|
tags: ["v*"]
|
|
@@ -37,10 +37,16 @@ jobs:
|
|
|
37
37
|
with:
|
|
38
38
|
node-version: 24
|
|
39
39
|
registry-url: https://registry.npmjs.org
|
|
40
|
+
# npm's trusted publishing (OIDC) needs npm 11.5.1 or later; no token is stored anywhere.
|
|
41
|
+
- run: npm install --global npm@11
|
|
40
42
|
- run: pnpm install
|
|
41
|
-
-
|
|
42
|
-
|
|
43
|
-
|
|
43
|
+
- name: Publish the version in package.json unless the registry has it
|
|
44
|
+
run: |
|
|
45
|
+
name=$(node -p "require('./package.json').name")
|
|
46
|
+
version=$(node -p "require('./package.json').version")
|
|
47
|
+
if [ "$(npm view "$name@$version" version 2>/dev/null)" = "$version" ]; then echo "$name@$version is already published"; exit 0; fi
|
|
48
|
+
pnpm pack --pack-destination "$RUNNER_TEMP/pack"
|
|
49
|
+
npm publish "$RUNNER_TEMP/pack/"*.tgz --access public --provenance
|
|
44
50
|
|
|
45
51
|
release:
|
|
46
52
|
needs: publish
|