Compare commits

...

4 Commits

Author SHA1 Message Date
tequ
bf788fe7b9 4.0.4-alpha.3 (#59) 2026-05-26 03:25:35 +00:00
tequ
3c7609429f Fix publish to use release_tag (#58) 2026-05-26 03:17:31 +00:00
tequ
b85f34d16f 4.0.4-alpha.2 (#57) 2026-05-26 02:50:40 +00:00
tequ
c70e4c1eee fix publish workflow to use node 24 (Support OIDC publish) (#56) 2026-05-26 02:42:36 +00:00
3 changed files with 11 additions and 4 deletions

View File

@@ -43,7 +43,7 @@ jobs:
- uses: actions/setup-node@v6
with:
node-version: "20"
node-version: "24"
registry-url: https://registry.npmjs.org
package-manager-cache: false
@@ -61,11 +61,18 @@ jobs:
name="$(jq -r .name "$package_json")"
version="$(jq -r .version "$package_json")"
tag="$name@$version"
if [[ "$version" == *"-"* ]]; then
release_tag="${version#*-}"
release_tag="${release_tag%%.*}"
else
release_tag="latest"
fi
{
echo "name=$name"
echo "version=$version"
echo "tag=$tag"
echo "release_tag=$release_tag"
} >> "$GITHUB_OUTPUT"
- name: Check release tag matches package version
@@ -99,4 +106,4 @@ jobs:
exit 1
- name: Publish to npm
run: npm publish --workspace "${{ steps.release.outputs.package-path }}" --registry https://registry.npmjs.org
run: npm publish --workspace "${{ steps.release.outputs.package-path }}" --registry https://registry.npmjs.org --tag "${{ steps.package.outputs.release_tag }}"

2
package-lock.json generated
View File

@@ -16048,7 +16048,7 @@
}
},
"packages/xahau": {
"version": "4.0.4-alpha.1",
"version": "4.0.4-alpha.3",
"license": "ISC",
"dependencies": {
"@scure/bip32": "^1.3.1",

View File

@@ -1,6 +1,6 @@
{
"name": "xahau",
"version": "4.0.4-alpha.1",
"version": "4.0.4-alpha.3",
"license": "ISC",
"description": "A TypeScript/JavaScript API for interacting with the Xahau Network in Node.js and the browser",
"files": [