Skip to content

Conversation

@kikuomax
Copy link
Member

Proposed changes

Introduces a GitHub Actions workflow which builds and publishes a developer package to the GitHub npm registry when commits are pushed to the main branch.

A developer package bears the next release version but followed by a dash (-) plus the short commit hash of the commit used to build the package.

Related issues:

kikuomax added 4 commits May 18, 2025 10:50
Introduces a GitHub Actions workflow `publish-dev-package` which
publishes a developer package to the GitHub npm registry when commits
are pushed to the `main` branch. A developer package bears the target
release version but followed by the short commit hash of the commit used
to build the package. The actual operations are done in
`publish-package.yml`.

The workflow is also triggered by the `issue/2-gha-publish-dev` branch
for experiments. But this trigger must be removed when experiments are
completed.
`short_commit_hash` → `short-commit-hash`.
@kikuomax kikuomax requested a review from Copilot May 18, 2025 16:10
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds a GitHub Actions workflow to automate building and publishing a developer package tagged with the commit hash, and updates the package manifest and documentation to support installation from GitHub’s npm registry.

  • Introduces a reusable publish-package.yml workflow and a publish-dev-package.yml that triggers on pushes to main
  • Updates package.json to include the Japanese README in the published files
  • Extends README.md and README.ja.md with instructions for installing developer packages from GitHub Packages

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
package.json Added README.ja.md to the files array for npm publication
README.md Documented how to install developer packages via GitHub Packages
README.ja.md Japanese translation of installation instructions
.github/workflows/publish-package.yml New reusable workflow to build and publish to any npm registry
.github/workflows/publish-dev-package.yml Workflow to publish developer packages on main
Comments suppressed due to low confidence (1)

.github/workflows/publish-dev-package.yml:7

  • This test branch filter (issue/2-gha-publish-dev) should be removed before merging to avoid unintended workflow runs.
-      - issue/2-gha-publish-dev # TODO: remove after testing

kikuomax and others added 2 commits May 19, 2025 01:15
Fixes an awkward Japanese term.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@kikuomax kikuomax requested a review from Copilot May 18, 2025 16:18
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR introduces GitHub Actions workflows that build and publish a developer package to the GitHub npm registry when commits are pushed to the main branch. Key changes include updating the package.json file, adding documentation in both English and Japanese on how to install the developer package, and adding two new workflow files to automate the publishing process.

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
package.json Updated the files array to include README.ja.md
README.md Added instructions for installing developer packages via GitHub
README.ja.md Added Japanese documentation explaining GitHub Packages installation
.github/workflows/publish-package.yml Introduced a reusable workflow for publishing to a specified npm registry
.github/workflows/publish-dev-package.yml Configured workflow to publish developer packages on push to main

Copy link
Member Author

@kikuomax kikuomax left a comment

Choose a reason for hiding this comment

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

I self-reviewed the changes.

@kikuomax kikuomax merged commit aecf920 into main May 19, 2025
@kikuomax kikuomax deleted the issue/2-gha-publish-dev branch May 19, 2025 14:20
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.

Publish to the GitHub npm registry

2 participants