Skip to content

feat(core): renamed github actions environment package#240

Merged
stephansama merged 3 commits into
mainfrom
stephansama/ste-98-rename-stephansamagithub-env-to-stephansamatypes-github
Mar 9, 2026
Merged

feat(core): renamed github actions environment package#240
stephansama merged 3 commits into
mainfrom
stephansama/ste-98-rename-stephansamagithub-env-to-stephansamatypes-github

Conversation

@stephansama
Copy link
Copy Markdown
Owner

Checklist

  • Latest changes from main have been merged
  • Conflicts have been resolved
  • The branch is pointing to main
  • Eslint hasn't reported any issues.
  • All unit tests pass

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Mar 9, 2026

🦋 Changeset detected

Latest commit: 52086f4

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@stephansama/types-github-action-env Major
@stephansama/github-env Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 9, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
packages Ready Ready Preview, Comment Mar 9, 2026 3:29am

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Mar 9, 2026

Warning

Rate limit exceeded

@stephansama has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 16 minutes and 51 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 3fb6fb6c-c5d9-4ae7-8070-4ad56f8c0c9b

📥 Commits

Reviewing files that changed from the base of the PR and between 4181f1a and 52086f4.

📒 Files selected for processing (2)
  • core/github-env/README.md
  • core/types-github-action-env/README.md
📝 Walkthrough

Walkthrough

Extracts TypeScript types from the deprecated github-env package into a new standalone types-only package (@stephansama/types-github-action-env), documenting the migration via a changeset and updating workspace documentation to reflect the package reorganization.

Changes

Cohort / File(s) Summary
Package Deprecation
core/github-env/package.json, README.md
Marked github-env package as deprecated by prepending "[Deprecated]" to description, removed keywords, types reference, files exposure, and build scripts. Updated workspace README to add types-github-action-env entry and deprecation notice.
New Types Package
core/types-github-action-env/package.json, README.md, CHANGELOG.md
Added new types-only package with complete package metadata, TypeScript types entry point, build scripts (lint, type-check, prelint), and documentation including installation/usage guidance and historical changelog.
Version Management
.changeset/funny-bikes-sink.md
Added changeset documenting major version bumps for both packages and the package rename/migration.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Poem

🐰 A hop and a skip, we've extracted with care,
The types now reside in their own little lair,
Old github-env bows with a deprecation bow,
While types-github-action-env takes the stage now!

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately describes the main change: renaming the github-env package to types-github-action-env.
Description check ✅ Passed The description matches the template structure with all required checklist items completed and checked.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch stephansama/ste-98-rename-stephansamagithub-env-to-stephansamatypes-github

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@gemini-code-assist
Copy link
Copy Markdown

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request refactors the GitHub Actions environment variable types package by renaming it from @stephansama/github-env to @stephansama/types-github-action-env. This change aims to improve clarity and maintainability by using a more descriptive name that highlights its role as a type definition package. The old package has been deprecated, and its assets have been migrated to the new, appropriately named package.

Highlights

  • Package Renaming: The @stephansama/github-env package has been renamed to @stephansama/types-github-action-env to more accurately reflect its purpose as a types package for GitHub Actions environment variables.
  • Deprecation of Old Package: The original @stephansama/github-env package has been explicitly marked as deprecated in the main README.md and its package.json file.
  • New Package Structure: A new directory core/types-github-action-env was created, housing the package.json, README.md, CHANGELOG.md, and source files for the newly named package.
  • Changelog Entry: A new changeset entry was added, indicating a major version bump for both the deprecated and the new package, signifying the breaking change associated with the rename.
Changelog
  • .changeset/funny-bikes-sink.md
    • Added a new changeset entry for a major version bump, indicating the renaming of the GitHub Actions environment package.
  • core/types-github-action-env/CHANGELOG.md
    • 0.1.6: switch from npmjs to npmx
    • 0.1.5: updated dependencies
    • 0.1.4: Updated developer experience and readmes
    • 0.1.3: migrated to tsdown
    • 0.1.2: Added more plugins to auto readme. Removed patch dependencies. updated package.jsons with new packages directory structure
    • 0.1.1: Updated markdown readme script. removed typedoc from types package
    • 0.1.0: Created github environment package
Activity
  • No human activity has been recorded on this pull request yet.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 9, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request renames the @stephansama/github-env package to @stephansama/types-github-action-env and deprecates the old one. The changes are generally well-executed. However, I found several instances in the new package's README.md and CHANGELOG.md where the old package name is still being used. This will cause confusion and problems for users trying to install and use the new package. I've added specific comments with suggestions to correct these references.

@@ -0,0 +1,44 @@
# @stephansama/github-env
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The title of the changelog still refers to the old package name. It should be updated to the new package name, @stephansama/types-github-action-env, to avoid confusion.

Suggested change
# @stephansama/github-env
# @stephansama/types-github-action-env

Comment on lines +3 to +6
[![Source code](https://img.shields.io/badge/Source-666666?style=flat&logo=github&label=Github&labelColor=211F1F)](https://github.com/stephansama/packages/tree/main/core/github-env)
[![Documentation](https://img.shields.io/badge/Documentation-211F1F?style=flat&logo=Wikibooks&labelColor=211F1F)](https://packages.stephansama.info/api/@stephansama/github-env)
[![NPM Version](https://img.shields.io/npm/v/%40stephansama%2Fgithub-env?logo=npm&logoColor=red&color=211F1F&labelColor=211F1F)](https://www.npmx.dev/package/@stephansama/github-env)
[![npm downloads](https://img.shields.io/npm/dw/@stephansama/github-env?labelColor=211F1F)](https://www.npmx.dev/package/@stephansama/github-env)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The badges in the README point to the old package name (@stephansama/github-env). This will lead users to incorrect links. Please update them to reflect the new package name, @stephansama/types-github-action-env, and the new directory path.

Suggested change
[![Source code](https://img.shields.io/badge/Source-666666?style=flat&logo=github&label=Github&labelColor=211F1F)](https://github.com/stephansama/packages/tree/main/core/github-env)
[![Documentation](https://img.shields.io/badge/Documentation-211F1F?style=flat&logo=Wikibooks&labelColor=211F1F)](https://packages.stephansama.info/api/@stephansama/github-env)
[![NPM Version](https://img.shields.io/npm/v/%40stephansama%2Fgithub-env?logo=npm&logoColor=red&color=211F1F&labelColor=211F1F)](https://www.npmx.dev/package/@stephansama/github-env)
[![npm downloads](https://img.shields.io/npm/dw/@stephansama/github-env?labelColor=211F1F)](https://www.npmx.dev/package/@stephansama/github-env)
[![Source code](https://img.shields.io/badge/Source-666666?style=flat&logo=github&label=Github&labelColor=211F1F)](https://github.com/stephansama/packages/tree/main/core/types-github-action-env)
[![Documentation](https://img.shields.io/badge/Documentation-211F1F?style=flat&logo=Wikibooks&labelColor=211F1F)](https://packages.stephansama.info/api/@stephansama/types-github-action-env)
[![NPM Version](https://img.shields.io/npm/v/%40stephansama%2Ftypes-github-action-env?logo=npm&logoColor=red&color=211F1F&labelColor=211F1F)](https://www.npmx.dev/package/@stephansama/types-github-action-env)
[![npm downloads](https://img.shields.io/npm/dw/@stephansama/types-github-action-env?labelColor=211F1F)](https://www.npmx.dev/package/@stephansama/types-github-action-env)

Comment thread core/types-github-action-env/README.md Outdated
To use these type definitions, add the package to your `devDependencies`:

```sh
pnpm install --save-dev @stephansama/github-env
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The installation command uses the old package name. This will cause users to install the deprecated package instead of the new one. Please update it to @stephansama/types-github-action-env.

Suggested change
pnpm install --save-dev @stephansama/github-env
pnpm install --save-dev @stephansama/types-github-action-env

Comment thread core/types-github-action-env/README.md Outdated
```json
{
"compilerOptions": {
"types": ["@stephansama/github-env"]
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The usage example for tsconfig.json refers to the old package name. This will not work for users of the new package. Please update it to @stephansama/types-github-action-env.

Suggested change
"types": ["@stephansama/github-env"]
"types": ["@stephansama/types-github-action-env"]

Comment thread core/types-github-action-env/README.md Outdated
or add the following reference to any typescript file

```ts
/// <reference types="@stephansama/github-env" />
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The TypeScript reference comment example uses the old package name. This needs to be updated to the new package name, @stephansama/types-github-action-env, for the types to be correctly referenced.

Suggested change
/// <reference types="@stephansama/github-env" />
/// <reference types="@stephansama/types-github-action-env" />

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Mar 9, 2026

More templates

@stephansama/ai-commit-msg

pnpm add https://pkg.pr.new/stephansama/packages/@stephansama/ai-commit-msg@240

@stephansama/alfred-kaomoji

pnpm add https://pkg.pr.new/stephansama/packages/@stephansama/alfred-kaomoji@240

@stephansama/astro-iconify-svgmap

pnpm add https://pkg.pr.new/stephansama/packages/@stephansama/astro-iconify-svgmap@240

@stephansama/auto-readme

pnpm add https://pkg.pr.new/stephansama/packages/@stephansama/auto-readme@240

@stephansama/catppuccin-jsonresume-theme

pnpm add https://pkg.pr.new/stephansama/packages/@stephansama/catppuccin-jsonresume-theme@240

@stephansama/catppuccin-opml

pnpm add https://pkg.pr.new/stephansama/packages/@stephansama/catppuccin-opml@240

@stephansama/catppuccin-rss

pnpm add https://pkg.pr.new/stephansama/packages/@stephansama/catppuccin-rss@240

@stephansama/catppuccin-typedoc

pnpm add https://pkg.pr.new/stephansama/packages/@stephansama/catppuccin-typedoc@240

@stephansama/catppuccin-xsl

pnpm add https://pkg.pr.new/stephansama/packages/@stephansama/catppuccin-xsl@240

create-stephansama-example

pnpm add https://pkg.pr.new/stephansama/packages/create-stephansama-example@240

@stephansama/find-makefile-targets

pnpm add https://pkg.pr.new/stephansama/packages/@stephansama/find-makefile-targets@240

@stephansama/github-env

pnpm add https://pkg.pr.new/stephansama/packages/@stephansama/github-env@240

@stephansama/multipublish

pnpm add https://pkg.pr.new/stephansama/packages/@stephansama/multipublish@240

@stephansama/prettier-plugin-handlebars

pnpm add https://pkg.pr.new/stephansama/packages/@stephansama/prettier-plugin-handlebars@240

@stephansama/remark-asciinema

pnpm add https://pkg.pr.new/stephansama/packages/@stephansama/remark-asciinema@240

@stephansama/svelte-social-share-links

pnpm add https://pkg.pr.new/stephansama/packages/@stephansama/svelte-social-share-links@240

@stephansama/typed-env

pnpm add https://pkg.pr.new/stephansama/packages/@stephansama/typed-env@240

@stephansama/typed-events

pnpm add https://pkg.pr.new/stephansama/packages/@stephansama/typed-events@240

@stephansama/typed-nocodb-api

pnpm add https://pkg.pr.new/stephansama/packages/@stephansama/typed-nocodb-api@240

@stephansama/typed-templates

pnpm add https://pkg.pr.new/stephansama/packages/@stephansama/typed-templates@240

@stephansama/types-github-action-env

pnpm add https://pkg.pr.new/stephansama/packages/@stephansama/types-github-action-env@240

@stephansama/types-lhci

pnpm add https://pkg.pr.new/stephansama/packages/@stephansama/types-lhci@240

commit: 11f3ac7

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 4

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In @.changeset/funny-bikes-sink.md:
- Around line 2-6: Update the release note to explicitly state the rename from
`@stephansama/types-github-action-env` to `@stephansama/github-env` so consumers
know what to migrate; replace the generic line "renamed github actions
environment package" with a clear sentence like "Renamed package
`@stephansama/types-github-action-env` → `@stephansama/github-env`; update imports
and package.json to use `@stephansama/github-env`" so both package names
(`@stephansama/types-github-action-env` and `@stephansama/github-env`) are present
and actionable.

In `@core/github-env/package.json`:
- Line 4: Run an npm deprecation for the old package name to surface
install-time warnings: execute npm deprecate `@stephansama/github-env` "Package
deprecated — use `@stephansama/types-github-action-env` instead" (or similar
message directing users), and optionally update the package.json "description"
value in this repository to remove the misleading "[Deprecated]" prefix; ensure
the deprecation text clearly points users to
`@stephansama/types-github-action-env`.

In `@core/types-github-action-env/CHANGELOG.md`:
- Line 1: Replace the first-line changelog header "# `@stephansama/github-env`"
with the correct package name header "# core/types-github-action-env" so the
file identifies the published changelog for the core/types-github-action-env
package; ensure the new header remains the top-level Markdown heading.

In `@core/types-github-action-env/README.md`:
- Around line 3-33: Replace every occurrence of the deprecated package name
"@stephansama/github-env" with the new package name
"@stephansama/types-github-action-env" in this README: update the badge/link
targets and npm links, change the installation command (pnpm install --save-dev
...) to reference `@stephansama/types-github-action-env`, update the tsconfig
"types" entry to ["@stephansama/types-github-action-env"], and update the
triple-slash reference line (/// <reference types="..."/> ) to use
`@stephansama/types-github-action-env` so all badges, links, install instructions,
and usage examples point to the new package.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 33998df3-5b52-4060-bd9d-c348c95d8d4d

📥 Commits

Reviewing files that changed from the base of the PR and between 29b1de9 and 4181f1a.

📒 Files selected for processing (8)
  • .changeset/funny-bikes-sink.md
  • README.md
  • core/github-env/package.json
  • core/types-github-action-env/CHANGELOG.md
  • core/types-github-action-env/README.md
  • core/types-github-action-env/package.json
  • core/types-github-action-env/src/env.d.ts
  • core/types-github-action-env/tsconfig.json

Comment on lines +2 to +6
"@stephansama/types-github-action-env": major
"@stephansama/github-env": major
---

renamed github actions environment package
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Make the rename note explicit.

The generated release notes here do not tell consumers what to migrate from and to. Please name both packages so the major bump is actionable.

Proposed fix
-renamed github actions environment package
+Renamed `@stephansama/github-env` to `@stephansama/types-github-action-env`.
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"@stephansama/types-github-action-env": major
"@stephansama/github-env": major
---
renamed github actions environment package
"@stephansama/types-github-action-env": major
"@stephansama/github-env": major
---
Renamed `@stephansama/github-env` to `@stephansama/types-github-action-env`.
🧰 Tools
🪛 LanguageTool

[uncategorized] ~6-~6: The official name of this software platform is spelled with a capital “H”.
Context: ...hansama/github-env": major --- renamed github actions environment package

(GITHUB)

🪛 markdownlint-cli2 (0.21.0)

[warning] 6-6: First line in a file should be a top-level heading

(MD041, first-line-heading, first-line-h1)

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.changeset/funny-bikes-sink.md around lines 2 - 6, Update the release note
to explicitly state the rename from `@stephansama/types-github-action-env` to
`@stephansama/github-env` so consumers know what to migrate; replace the generic
line "renamed github actions environment package" with a clear sentence like
"Renamed package `@stephansama/types-github-action-env` → `@stephansama/github-env`;
update imports and package.json to use `@stephansama/github-env`" so both package
names (`@stephansama/types-github-action-env` and `@stephansama/github-env`) are
present and actionable.

"types",
"typescript"
],
"description": "[Deprecated] Additional environment variable types for GitHub CI",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

🧩 Analysis chain

🌐 Web query:

Does npm show package deprecation warnings from the descriptionfield in package.json, or isnpm deprecate required to warn users during install/update?

💡 Result:

npm does not generate npm WARN deprecated ... messages from the description field in package.json.

To show a deprecation warning during install/update, the package/version must be marked deprecated in the npm registry, which is what npm deprecate <pkg>[@<range>] "<message>" does (“update the npm registry entry … providing a deprecation warning to all who attempt to install it”). [1] The npm unpublish policy also describes deprecation as publishing “a clear warning message … every time the package is downloaded.” [2]

So: npm deprecate (or an equivalent registry-side deprecation) is required for install/update warnings; editing description won’t do it. [1] [2]

Sources: [1] npm docs: npm deprecate command, [2] npm docs: unpublish policy (recommends npm deprecate and notes it shows warnings).


Publish a deprecation notice via npm deprecate for the old package.

The [Deprecated] description prefix won't trigger install-time warnings. Use npm deprecate @stephansama/github-env`` to publish a deprecation notice that warns users during install/update and directs them to @stephansama/types-github-action-env.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@core/github-env/package.json` at line 4, Run an npm deprecation for the old
package name to surface install-time warnings: execute npm deprecate
`@stephansama/github-env` "Package deprecated — use
`@stephansama/types-github-action-env` instead" (or similar message directing
users), and optionally update the package.json "description" value in this
repository to remove the misleading "[Deprecated]" prefix; ensure the
deprecation text clearly points users to `@stephansama/types-github-action-env`.

@@ -0,0 +1,44 @@
# @stephansama/github-env
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Rename the changelog header to the new package.

Line 1 still labels this file as @stephansama/github-env, which will misidentify the published changelog for core/types-github-action-env.

Proposed fix
-# `@stephansama/github-env`
+# `@stephansama/types-github-action-env`
+
+Formerly published as `@stephansama/github-env`.
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
# @stephansama/github-env
# `@stephansama/types-github-action-env`
Formerly published as `@stephansama/github-env`.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@core/types-github-action-env/CHANGELOG.md` at line 1, Replace the first-line
changelog header "# `@stephansama/github-env`" with the correct package name
header "# core/types-github-action-env" so the file identifies the published
changelog for the core/types-github-action-env package; ensure the new header
remains the top-level Markdown heading.

Comment thread core/types-github-action-env/README.md Outdated
@stephansama stephansama merged commit 55958de into main Mar 9, 2026
10 checks 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