Skip to content

chore(gha): update npm.yml GitHub workflow - #48

Merged
jvdadda merged 2 commits into
masterfrom
mobsuccessbot/workflow-npm
Sep 1, 2026
Merged

jvdadda merged 2 commits into
masterfrom
mobsuccessbot/workflow-npm

Conversation

@ms-bot

@ms-bot ms-bot commented Jan 9, 2025

Copy link
Copy Markdown
Contributor

Why is this needed?

This pull request has been created by a robot to update the npm.yml GitHub workflow.

@ms-bot ms-bot added the mobsuccessbot Pull requests that enforce company policies label Jan 9, 2025
@ms-bot
ms-bot force-pushed the mobsuccessbot/workflow-npm branch from d2befe0 to 414cd5e Compare January 9, 2025 13:03
@jvdadda
jvdadda marked this pull request as draft January 9, 2025 17:05
@jvdadda
jvdadda marked this pull request as ready for review January 31, 2025 14:41
@ms-bot
ms-bot force-pushed the mobsuccessbot/workflow-npm branch 3 times, most recently from 2513a2f to 313183b Compare February 26, 2025 14:42
@ms-bot
ms-bot force-pushed the mobsuccessbot/workflow-npm branch from 313183b to 7ddbae0 Compare August 12, 2025 08:55
@jvdadda
jvdadda marked this pull request as draft October 14, 2025 09:32
@ms-bot
ms-bot force-pushed the mobsuccessbot/workflow-npm branch from 7ddbae0 to 914aaaf Compare October 15, 2025 08:53
@ms-bot
ms-bot force-pushed the mobsuccessbot/workflow-npm branch from 914aaaf to 2bbe86a Compare November 26, 2025 08:51
@ms-bot
ms-bot force-pushed the mobsuccessbot/workflow-npm branch from 2bbe86a to 1ccd8c1 Compare December 16, 2025 07:51
@ms-bot
ms-bot force-pushed the mobsuccessbot/workflow-npm branch from 1ccd8c1 to ae01953 Compare May 20, 2026 15:57
@ms-bot
ms-bot force-pushed the mobsuccessbot/workflow-npm branch from ae01953 to 8014b4e Compare July 19, 2026 08:49
@ms-bot
ms-bot force-pushed the mobsuccessbot/workflow-npm branch from 8014b4e to 60025b2 Compare August 4, 2026 10:57
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@jvdadda
jvdadda marked this pull request as ready for review September 1, 2026 08:32
Copilot AI lite review requested due to automatic review settings September 1, 2026 08:32
@jvdadda
jvdadda enabled auto-merge (squash) September 1, 2026 08:32
@jvdadda
jvdadda merged commit 9c38bd6 into master Sep 1, 2026
16 checks passed
@jvdadda
jvdadda deleted the mobsuccessbot/workflow-npm branch September 1, 2026 08:33

@jvdadda jvdadda left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Sync npm.yml + tri de package.json. LGTM.

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.

Pull request overview

Updates the repository’s NPM GitHub Actions workflow to newer runner/tooling versions and introduces a sort-package-json check, with a corresponding package.json reordering to satisfy/align with the new linting expectations.

Changes:

  • Bumps npm.yml jobs to ubuntu-24.04 and updates action versions used within the workflow.
  • Adds a new sortpackagejson job that checks package.json ordering via sort-package-json.
  • Reorders keys in package.json (including moving publishConfig) and reorders the scripts entries.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
package.json Reorders metadata and script entries; keeps publishConfig while adjusting key ordering.
.github/workflows/npm.yml Updates CI runner/tooling versions and adds a sort-package-json verification job to the workflow.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread .github/workflows/npm.yml
Comment on lines +33 to +49
- name: Cache Node Modules
id: cache
uses: actions/cache@v6
env:
cache-name: cache-node-modules
with:
path: ./node_modules
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package.json') }}-${{ hashFiles('**/package-lock.json') }}-node-24
- run: echo "//npm.pkg.github.com/:_authToken=${{ secrets.MS_READ_PACKAGES_GITHUB_PAT }}" >> ~/.npmrc
name: Configure Credentials For GitHub Packages
- run: npm ci
if: steps.cache.outputs.cache-hit != 'true'
working-directory: .
- run: |
echo "💡 👉 Check not passing? see the doc at https://www.notion.so/mobsuccess/sort-package-json-de5cf4648e8545dbb5a2a5a910380535"
npx --yes sort-package-json@2.4.1 --check
working-directory: .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mobsuccessbot Pull requests that enforce company policies

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants