Skip to content

fix: add publishConfig and bump version for npm release - #29

Merged
wesleyboar merged 2 commits into
mainfrom
fix/release-publish
Jul 13, 2026
Merged

fix: add publishConfig and bump version for npm release#29
wesleyboar merged 2 commits into
mainfrom
fix/release-publish

Conversation

@wesleyboar

@wesleyboar wesleyboar commented Jul 13, 2026

Copy link
Copy Markdown
Member

Overview

Two bugs caused the v0.0.4 release CI run to fail:

  1. Scoped npm packages default to --access restricted, so I add publishConfig in package.json as access: public to let npm publish succeeds without extra flags.
  2. 0.0.4 was already published to npm, so publishing again would fail with a 403.

Related

Changes

  • added publishConfig.access: "public" to package.json
  • updated version 0.0.40.0.5

Testing

  1. Merge this PR.
  2. Create a GitHub release tagged v0.0.5 (if not already present).
  3. Verify the npm-publish workflow passes and @tacc/core-components@0.0.5 appears on npm.

UI

N/A

- publishConfig.access public fixes scoped package publish failure
- version bump 0.0.4 → 0.0.5 (0.0.4 already published to npm)
@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@wesleyboar

Copy link
Copy Markdown
Member Author

I told AI this was probably the case. It verified it. This is the PR it came up with. I've reviewed it. Looks right.

@wesleyboar
wesleyboar merged commit 75f2ede into main Jul 13, 2026
@wesleyboar
wesleyboar deleted the fix/release-publish branch July 13, 2026 20:18
wesleyboar added a commit that referenced this pull request Jul 13, 2026
## Overview

Adds `workflow_dispatch` to the npm publish workflow so it can be
triggered manually from the GitHub Actions UI, without needing to create
a release.

> [!IMPORTANT]
> We would only manually run if it fails and we have a fix after GitHub
release, because GitHub release automatically triggers this job.

## Related

- requires #29

## Changes

- **updated** `.github/workflows/npm-publish.yml` — added
`workflow_dispatch` trigger

## Testing

1. Merge this PR.
2. Go to [Actions → Node.js
Package](https://github.com/TACC/Core-Components/actions/workflows/npm-publish.yml).
3. Click **Run workflow** and confirm it appears as an option.

## UI

N/A
wesleyboar added a commit that referenced this pull request Jul 13, 2026
## Overview

Switch npm publishing from a token (`NPM_TOKEN`) to Trusted Publisher
(OIDC), so CI authenticates to npm without a stored secret. This fixes
the publish failure, which was a token auth error.

## Related

- Mirrors the Trusted Publisher setup used for `@tacc/html-filter-sort`
- Follows #31 and #29

## Changes

- **changed** npm auth to Trusted Publisher (OIDC)
- **removed** the `NPM_TOKEN` secret dependency
- **merged** the build and publish jobs into one
- **updated** workflow actions to `@v6` and Node to `24`

## Testing

> [!TIP]
> [Successfully
tested.](https://github.com/TACC/Core-Components/actions/runs/29286986062/job/86941791315)

1. On npmjs.com, register the Trusted Publisher for
`@tacc/core-components`: owner `TACC`, repo `Core-Components`, workflow
`npm-publish.yml`.
2. Publish via a release or `workflow_dispatch`, and confirm it succeeds
without a token.

---------

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
wesleyboar added a commit that referenced this pull request Jul 13, 2026
## Overview

Adds contributor documentation and git conventions in the style of
Core-CMS and Core-Styles.

> [!WARNING]
> Pending successful release test.

## Related

- `PUBLISHING.md` tested via:
    - #29
    - #_LINK_TO_SECOND_FIX_
    - _LINK_TO_SUCCESSFUL_RUN_

## Changes

- **added** `CONTRIBUTING.md` (which points to PUBLISHING)
- **added** `PUBLISHING.md`
- **added** `.gitmessage`
- **updated** `.github/pull_request_template.md`

## Testing & UI

-
[`CONTRIBUTING.md`](https://github.com/TACC/Core-Components/blob/docs/contributing-publishing/CONTRIBUTING.md)
-
[`PUBLISHING.md`](https://github.com/TACC/Core-Components/blob/docs/contributing-publishing/PUBLISHING.md)
-
[`.gitmessage`](https://github.com/TACC/Core-Components/blob/docs/contributing-publishing/.gitmessage)
-
[`.github/pull_request_template.md`](https://github.com/TACC/Core-Components/blob/docs/contributing-publishing/.github/pull_request_template.md?plain=1)
wesleyboar added a commit that referenced this pull request Aug 27, 2026
Updates the uuid dependency range from "^8 || ^9" to "^11.1.1", which
includes a fix for GHSA-w5hq-g745-h8pq (missing buffer bounds check in
v3/v5/v6 when buf is provided). Only v4() is used in this package, so
the API is unaffected.

Also regenerates package-lock.json, which had drifted out of sync with
package.json since #28/#29 (storybook deps moved to devDependencies,
version bumped to 0.0.5, but the lockfile was never updated to match).
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