5 Commits

Author SHA1 Message Date
4c396d9f60 Add repository field to package.json (#9)
Required for npm provenance verification — npm checks that the
repository URL matches the GitHub repo publishing the package.

Co-authored-by: Ona <no-reply@ona.com>
2026-03-14 01:32:17 +00:00
8680ef66c8 Add setup-node step for npm registry auth (#8)
setup-node with registry-url configures the .npmrc with the OIDC
token needed for trusted publishing via bunx npm publish.

Co-authored-by: Ona <no-reply@ona.com>
2026-03-14 01:29:36 +00:00
3827ccff23 Add top-level OIDC permissions to publish workflow (#7)
Co-authored-by: Ona <no-reply@ona.com>
2026-03-14 01:23:37 +00:00
650e2141d8 Use bunx npm publish for trusted publishing (#6)
bun publish does not pick up the OIDC token for npm trusted publishing.

Co-authored-by: Ona <no-reply@ona.com>
2026-03-14 01:19:35 +00:00
2d75600913 Bump version to 0.2.0 (#5)
Breaking: JrxNode is now a union type (JrxElement | null | undefined),
isJrxNode renamed to isJrxElement.

Co-authored-by: Ona <no-reply@ona.com>
2026-03-14 01:11:45 +00:00
2 changed files with 14 additions and 1 deletions

View File

@@ -4,6 +4,10 @@ on:
release: release:
types: [published] types: [published]
permissions:
id-token: write # Required for OIDC
contents: read
jobs: jobs:
publish: publish:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -15,12 +19,17 @@ jobs:
- uses: oven-sh/setup-bun@v2 - uses: oven-sh/setup-bun@v2
- uses: actions/setup-node@v4
with:
node-version: '24'
registry-url: 'https://registry.npmjs.org'
- run: bun install - run: bun install
- run: bun run build - run: bun run build
- run: bun test - run: bun test
- run: bun publish --access public --provenance - run: bunx npm publish --provenance --access public
env: env:
NPM_CONFIG_REGISTRY: https://registry.npmjs.org NPM_CONFIG_REGISTRY: https://registry.npmjs.org

View File

@@ -6,6 +6,10 @@
"access": "public" "access": "public"
}, },
"description": "JSX factory for json-render. Write JSX, get Spec JSON.", "description": "JSX factory for json-render. Write JSX, get Spec JSON.",
"repository": {
"type": "git",
"url": "https://github.com/kennethnym/jrx"
},
"type": "module", "type": "module",
"module": "./dist/index.js", "module": "./dist/index.js",
"types": "./dist/index.d.ts", "types": "./dist/index.d.ts",