Skip to content

feat(copy-github-files): publish to npm - #236

Merged
Jason3S merged 2 commits into
mainfrom
prepare-publication-copy-github-files
Nov 23, 2026
Merged

Jason3S merged 2 commits into
mainfrom
prepare-publication-copy-github-files

Conversation

@street-side-software-automation

@street-side-software-automation street-side-software-automation Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

feat(copy-github-files): publish to npm

Makes @streetsidesoftware/copy-github-files public: removes private and "-- Private until verified", sets its release-as to 1.0.0, updates its row in the root README.md packages table, and records it in static/published.json as waiting for publication ({ "trustedPublishing": false }).

This PR stays as it is while it's open, so commits pushed to its branch are kept. To rebuild it from main, close it and run the workflow. To never publish the package, set its entry in static/published.json on main to false and close this PR.

1. Check out this branch

Either command creates a local branch that tracks this PR, or resets one left over from an earlier PR:

gh pr checkout prepare-publication-copy-github-files --force

Or with git:

git fetch origin prepare-publication-copy-github-files
git switch -C prepare-publication-copy-github-files --track origin/prepare-publication-copy-github-files

2. Publish the first version by hand

From the repo root:

  • Log in to npm, then check that the last command shows your npm user name:
    npm login --auth-type=web
    npm whoami
  • Build and pack the package, then check the files under "Tarball Contents". dist/ is gitignored and must be there:
    pnpm install
    pnpm run build
    pnpm run build:readme
    cd packages/copy-github-files
    pnpm pack --out package.tgz
  • Publish it as an alpha and add the trusted publisher. When npm opens the browser for 2FA, check the box to skip 2FA for the next 5 minutes, so pnpm trusted-publishing doesn't ask again:
    npm publish package.tgz --tag alpha --provenance=false
    rm package.tgz
    pnpm exec trusted-publishing

3. Commit the Trusted Publishing status

  • Commit and push the updated static/published.json:
    cd ../..
    git add static/published.json
    git commit -m "chore(copy-github-files): record Trusted Publishing"
    git push

4. Merge this PR

  • Merge this PR after committing the Trusted Publishing status

Then merge the release PR. The Publish to NPM workflow publishes 1.0.0 through Trusted Publishing. Then merge the PR that the Update Release Please Config workflow opens to remove release-as.

Summary

 README.md                               | 2 +-
 packages/copy-github-files/package.json | 3 +--
 release-please-config.json              | 3 ++-
 static/packages.csv                     | 2 +-
 static/published.json                   | 1 +
 5 files changed, 6 insertions(+), 5 deletions(-)

@Jason3S
Jason3S merged commit de573dd into main Nov 23, 2026
8 checks passed
@Jason3S
Jason3S deleted the prepare-publication-copy-github-files branch November 23, 2026 09:31
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