Skip to content

Add GH action for publishing NPM packages - #118

Open
Lotes wants to merge 12 commits into
mainfrom
lotes/publish-via-gh-action
Open

Lotes wants to merge 12 commits into
mainfrom
lotes/publish-via-gh-action

Conversation

@Lotes

@Lotes Lotes commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

I just added the action.

I am currently working on connecting the release "environment".

@Lotes

Lotes commented Nov 10, 2026

Copy link
Copy Markdown
Contributor Author

Two things that pop up for me are the name of the action, which can be shortened and the helper script which shares some logic which the existing script.

@Lotes

Lotes commented Nov 10, 2026

Copy link
Copy Markdown
Contributor Author

Also cleaned up the NPM scripts. I think it is ready for review.

@Lotes
Lotes marked this pull request as ready for review November 10, 2026 12:39
Copilot AI balanced review requested due to automatic review settings November 10, 2026 12:39

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

The publishing gate’s formatting-dependent regex can miss dependency version mismatches and reject matching prereleases because it truncates version strings.

1 open issue
What changed in this PR

This PR moves npm publishing from GitHub release events to package-manifest changes on main, with dry runs for pull requests and a dependency-version check before publishing.

Changes:

  • Uses a dedicated publishing action for both npm packages.
  • Adds dependency-version validation and shares manifest helpers between scripts.
  • Updates release instructions and removes superseded package scripts.
File Description
scripts/​update-version.js Reuses shared manifest helpers.
scripts/​shared.js Provides package-path and version helpers.
scripts/​check-versions.js Checks internal dependency versions across packages and examples.
RELEASE.md Documents automatic publishing and pull-request dry runs.
packages/​typir/​package.json Removes previous versioning and publishing scripts.
packages/​typir-langium/​package.json Removes previous versioning and publishing scripts.
package.json Adds the dependency-version check command.
package-lock.json Removes libc constraints from several optional dependencies.
.github/​workflows/​publish.yml Adds manifest-based triggers, validation, and the publishing action.

Review effort: Balanced

Comment thread scripts/check-versions.js Resolved
Lotes and others added 11 commits December 1, 2026 17:35
Signed-off-by: Markus Rudolph <markus.rudolph@typefox.io>
Signed-off-by: Markus Rudolph <markus.rudolph@typefox.io>
Signed-off-by: Markus Rudolph <markus.rudolph@typefox.io>
Signed-off-by: Markus Rudolph <markus.rudolph@typefox.io>
Signed-off-by: Markus Rudolph <markus.rudolph@typefox.io>
Signed-off-by: Markus Rudolph <markus.rudolph@typefox.io>

# Conflicts:
#	packages/typir-langium/package.json
Signed-off-by: Markus Rudolph <markus.rudolph@typefox.io>
Signed-off-by: Markus Rudolph <markus.rudolph@typefox.io>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Markus Rudolph <markus.rudolph@typefox.io>
Signed-off-by: Markus Rudolph <markus.rudolph@typefox.io>

This branch had an error being deployed

1 failed (outdated) deployment
publish — cf10337d Deployed Dec 2, 2026 by Lotes via Typir Publish #8
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.

2 participants