Files
xahau.js/.github/workflows/scripts/read-package-metadata.sh
tequ b2046efe85 Add npm trusted publishing workflow
Add GitHub Actions workflow for npm trusted publishing via OIDC.

The workflow validates package version bumps on PRs with npm publish dry-runs, publishes changed workspace packages from main-xahau, and creates matching GitHub releases. Shared npm publish logic is implemented as a local composite action used by both dry-run and publish jobs.
2026-05-13 12:01:45 +09:00

12 lines
310 B
Bash

#!/usr/bin/env bash
set -euo pipefail
package_path="$1"
package_file="$package_path/package.json"
name="$(jq -r .name "$package_file")"
version="$(jq -r .version "$package_file")"
echo "name=$name" >> "$GITHUB_OUTPUT"
echo "version=$version" >> "$GITHUB_OUTPUT"
echo "tag=$name@$version" >> "$GITHUB_OUTPUT"