Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions .github/workflows/mint-components-merge-to-main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: mint-components merge to master branch
on:
push:
branches: [master]
paths:
- "packages/mint-components/**"
workflow_dispatch:

permissions:
id-token: write
contents: write
packages: write
pull-requests: write
issues: read

jobs:
deploy_storybook:
runs-on: ubuntu-latest
name: Deploy Storybook to Github Pages
Copy link

Copilot AI Feb 6, 2026

Choose a reason for hiding this comment

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

Use consistent capitalization: "Github" should be "GitHub" in the job name.

Suggested change
name: Deploy Storybook to Github Pages
name: Deploy Storybook to GitHub Pages

Copilot uses AI. Check for mistakes.
defaults:
run:
working-directory: packages/mint-components
steps:
Comment on lines +1 to +23
Copy link

Copilot AI Feb 6, 2026

Choose a reason for hiding this comment

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

Workflow file/path and job naming are inconsistent with what it actually does: the filename is mint-components-merge-to-main.yml but it triggers on master, and the job is named deploy_storybook / "Deploy Storybook to Github Pages" even though there are no GitHub Pages deployment steps. Renaming these to reflect the release/changesets purpose will make future maintenance/troubleshooting easier.

Copilot uses AI. Check for mistakes.
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
Comment on lines +26 to +27
Copy link

Copilot AI Feb 6, 2026

Choose a reason for hiding this comment

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

actions/checkout is configured with ref: ${{ github.head_ref }}, but github.head_ref is empty for push events. This can cause the workflow to check out the wrong ref or fail. Prefer omitting ref (defaults to github.sha) or set it to ${{ github.ref }} / ${{ github.sha }} for push workflows.

Suggested change
with:
ref: ${{ github.head_ref }}

Copilot uses AI. Check for mistakes.

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x

- name: Install packages
run: npm ci

- name: Build
run: npm run build

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
# Runs `npm i` after changeset to make sure that `package-lock.json` files are also updated
# Without this change only `package.json` files are updated, without `package-lock.json` changes.
version: npm run version
# Runs changesets on publish - will create tags and deploy to NPM
publish: npm run release
title: "mint-components - Version Packages"
Comment on lines +40 to +49
Copy link

Copilot AI Feb 6, 2026

Choose a reason for hiding this comment

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

The changesets/action step will execute from the repository root (GitHub Actions defaults.run.working-directory does not apply to uses: steps). Since this repo root has no package.json, version: npm run version / publish: npm run release will fail. Update the commands to cd packages/mint-components && ... or configure the action's supported cwd/workingDirectory input (if available) so it runs within packages/mint-components.

Copilot uses AI. Check for mistakes.
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
Comment on lines +50 to +52
Copy link

Copilot AI Feb 6, 2026

Choose a reason for hiding this comment

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

NODE_AUTH_TOKEN is set to secrets.GITHUB_TOKEN, which is not a valid authentication token for publishing to the public npm registry. Either remove NODE_AUTH_TOKEN (if using npm trusted publishing/OIDC) or set it to an npm token secret (commonly NPM_TOKEN) and ensure setup-node is configured for the npm registry.

Copilot uses AI. Check for mistakes.
8 changes: 8 additions & 0 deletions packages/mint-components/.changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
14 changes: 14 additions & 0 deletions packages/mint-components/.changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$schema": "https://unpkg.com/@changesets/config@3.1.1/schema.json",
"changelog": [
"@changesets/changelog-github",
{ "repo": "saasquatch/program-tools" }
],
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "master",
"updateInternalDependencies": "patch",
"ignore": []
}
Loading
Loading