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
16 changes: 11 additions & 5 deletions .changepacks/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
{
"ignore": ["*", "!packages/*/*", "!bindings/*/package.json"],
"baseBranch": "main",
"latestPackage": null
}
{
"ignore": ["*", "!packages/*/*", "!bindings/*/package.json"],
"baseBranch": "main",
"latestPackage": null,
"publish": {
"node": "npm publish"
},
"publishDryRun": {
"node": "npm publish --dry-run"
}
}
24 changes: 19 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ on:
pull_request:
branches:
- main
permissions: write-all
permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down Expand Up @@ -127,6 +128,11 @@ jobs:

publish:
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
pages: write
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v7
Expand Down Expand Up @@ -173,8 +179,6 @@ jobs:
with:
registry-url: "https://registry.npmjs.org"
node-version: 24
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: bun install
- run: bun run build
- name: Verify built package entry points
Expand Down Expand Up @@ -256,9 +260,19 @@ jobs:
fail_ci_if_error: true
files: ./coverage/lcov.info

# Publishes through npm OIDC trusted publishing. The job's
# `id-token: write` permission lets npm exchange GitHub's short-lived OIDC
# token, and public packages receive provenance automatically.
#
# PREREQUISITE: every @devup-ui/* package must be registered as a Trusted
# Publisher on npmjs.com against repo dev-five-git/devup-ui and workflow
# file `publish.yml`. npm matches that filename exactly, so renaming or
# moving this file breaks publishing until the entries are updated.
#
# The publish command itself is selected in .changepacks/config.json:
# changepacks defaults to `bun publish` because this repo has a bun.lock,
# and bun cannot do OIDC (oven-sh/bun#22423).
- uses: changepacks/action@main
id: changepacks
with:
publish: true
env:
NPM_CONFIG_TOKEN: ${{ secrets.NPM_TOKEN }}
Loading