Skip to content

chore(core): public access + npm trusted publishing from CI - #6

Merged
luishcastroc merged 2 commits into
mainfrom
npm-public-access
Aug 14, 2026
Merged

chore(core): public access + npm trusted publishing from CI#6
luishcastroc merged 2 commits into
mainfrom
npm-public-access

Conversation

@luishcastroc

@luishcastroc luishcastroc commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

publishConfig

Adds publishConfig.access: public to libs/core/package.json so the scoped package can be published (scoped packages default to restricted, which free accounts can't publish). ng-packagr carries the field into the dist package.json.

Release workflow (trusted publishing / OIDC)

New .github/workflows/release.yml: publishing a GitHub release triggers a CI job that builds core, stamps the version from the release tag (nx release only writes the new version into the local dist manifest, so a fresh CI build would otherwise carry the stale source version), and runs npm publish authenticated by OIDC trusted publishing — no npm token stored in the repo, and npm attaches provenance automatically.

Release flow becomes:

  1. pnpm nx release --skip-publish locally → version, changelog, tag, GitHub release
  2. The release event triggers release.yml → npm publish via OIDC

CONTRIBUTING.md updated to match. Note: the first publish still has to happen locally (pnpm nx release --first-release after npm login) because npm only allows registering a trusted publisher on a package that already exists; after that, register the trusted publisher (repo angular-gsap/angular-gsap, workflow release.yml) in the package's npm settings and CI takes over.

🤖 Generated with Claude Code

luishcastroc and others added 2 commits August 14, 2026 10:35
Scoped packages default to restricted; @angular-gsap/core is public.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Local nx release versions, tags, and creates the GitHub release with
--skip-publish; the release event triggers release.yml, which builds,
stamps the version from the tag (nx only versions the local dist
manifest), and npm-publishes with OIDC. No stored npm token.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@luishcastroc luishcastroc changed the title chore(core): publish with public access chore(core): public access + npm trusted publishing from CI Aug 14, 2026
@luishcastroc
luishcastroc merged commit e6a6a5c into main Aug 14, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant