Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@genlayer/transaction-kit",
"version": "0.1.0-rc.1",
"version": "0.1.0-rc.2",
"description": "Framework-agnostic GenLayer transaction policy, submission, tracking, and verification helpers.",
"license": "MIT",
"type": "module",
Expand Down
4 changes: 2 additions & 2 deletions packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@genlayer/transaction-kit-react",
"version": "0.1.0-rc.1",
"version": "0.1.0-rc.2",
"description": "GenLayer fee approval & signing UI \u2014 React adapter for @genlayer/transaction-kit",
"license": "MIT",
"type": "module",
Expand Down Expand Up @@ -28,7 +28,7 @@
"test": "vitest run"
},
"peerDependencies": {
"@genlayer/transaction-kit": "0.1.0-rc.1",
"@genlayer/transaction-kit": "0.1.0-rc.2",
"react": ">=18"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/vue/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@genlayer/transaction-kit-vue",
"version": "0.1.0-rc.1",
"version": "0.1.0-rc.2",
"description": "GenLayer fee approval & signing UI \u2014 Vue 3 adapter for @genlayer/transaction-kit",
"license": "MIT",
"type": "module",
Expand Down Expand Up @@ -28,7 +28,7 @@
"test": "vitest run"
},
"peerDependencies": {
"@genlayer/transaction-kit": "0.1.0-rc.1",
"@genlayer/transaction-kit": "0.1.0-rc.2",
"vue": ">=3.3"
},
"devDependencies": {
Expand Down
7 changes: 7 additions & 0 deletions scripts/publish-workflow.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ import { readFileSync } from 'node:fs';
import test from 'node:test';

const workflow = readFileSync(new URL('../.github/workflows/publish.yml', import.meta.url), 'utf8');
const releaseScript = readFileSync(new URL('./release.sh', import.meta.url), 'utf8');

test('release helper requires CI but not a removed branch credential workflow', () => {
assert.match(releaseScript, /--workflow=ci\.yml/);
assert.doesNotMatch(releaseScript, /--workflow=publish\.yml|credentials_status/);
assert.match(releaseScript, /git push origin "refs\/tags\/\$tag"/);
});

test('publishing uses GitHub OIDC without a long-lived npm credential', () => {
assert.match(workflow, /id-token: write/);
Expand Down
7 changes: 2 additions & 5 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,8 @@ if [[ "$ci_status" != "success" ]]; then
exit 1
fi

credentials_status="$(gh run list --workflow=publish.yml --branch "$branch" --commit "$local_sha" --limit 1 --json conclusion --jq '.[0].conclusion')"
if [[ "$credentials_status" != "success" ]]; then
echo "The repository-owned npm credential check for $branch@$local_sha is '${credentials_status:-missing}', not successful." >&2
exit 1
fi
# Trusted publishing authenticates inside the tag workflow's npm publish step.
# There is deliberately no branch-owned npm token/whoami workflow to wait for.

required_js="$(node -e "import('./scripts/release-policy.mjs').then(m => console.log(m.requiredGenlayerJsVersion))")"
published_js="$(npm view "genlayer-js@$required_js" version)"
Expand Down
Loading