I have reproduced the issue on the latest CLI version.
Yes, I am on the latest version
I have searched existing posts and this report is not a duplicate.
Yes, this isn’t a duplicate
In which of these areas are you experiencing a problem?
Hydrogen custom storefront
Expected behavior
Shopify github action should complete successfully and deploy the branch to Oxygen
Actual behavior
The action fails when npx shopify hydrogen deploy runs in the Ubuntu container with: Uncommitted changes detected: M package-lock.json w
Reproduction steps
Our site is built using Hydrogen. When we push a branch to github, an action runs that deploys to an oxygen server hosted by shopify using a github action. The yml file for this action was introduced by a PR opened by Shopify.
The issue we are running into happens during the github action. To clarify, we see this issue on our hosted github web page, in the action, when the action runs, triggered by a git push from my local machine.
This issue happens during the npx shopify hydrogen deploy kicked off by the action/yml - so the deployments are not happening when this occurs. As a result, we do not see any issues on the deployments page
We first noticed this issue on Oct 29 at 2:23 PM PDT. The deployment before that was Oct 28, 12:08 PM PDT which executed successfully.
The solution provided by Shopify support so far is to add the force flag to our yml file on line 38:
run: npx shopify hydrogen deploy --force
However, we’re not comfortable using this in production as it bypasses safety checks.
We also tried adding a --no-lockfile-check flag instead of –force; but, this did not resolve the issue.
I’m not aware of any code changes that triggered this issue. I tested that by going back to a branch from a few days before this that deployed successfully at that time. Upon rerunning the job, the issue occurred again despite having no code changes in the branch. I have included the debug log from that below.
The package-lock file is not included in these PRs and there are no changes to it that I am aware of. I do not see any uncommitted changes in github and I don’t think our current ecosystem allows uncommitted changes to be pushed. However, to help rule out issues with our lockfile, I have tried adding a space to it, committing and deploying. But forcing a commit in this way does not resolve the issue.
Verbose output
##[debug]Evaluating: secrets.OXYGEN_DEPLOYMENT_TOKEN_1000003613
##[debug]Evaluating Index:
##[debug]..Evaluating secrets:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> ‘OXYGEN_DEPLOYMENT_TOKEN_1000003613’
##[debug]=> ‘***’
##[debug]Result: ‘***’
##[debug]Evaluating condition for step: ‘Build and Publish to Oxygen’
##[debug]Evaluating: success()
##[debug]Evaluating success:
##[debug]=> true
##[debug]Result: true
##[debug]Starting: Build and Publish to Oxygen
##[debug]Loading inputs
##[debug]Loading env
Run npx shopify hydrogen deploy
##[debug]/usr/bin/bash -e /home/runner/work/_temp/da303b35-b05d-4041-89a3-ec43e6a01614.sh
╭─ error ──────────────────────────────────────────────────────────────────────╮
│ │
│ Uncommitted changes detected: │
│ │
│ M package-lock.json │
│ │
│ Next steps │
│ • Commit your changes before deploying or use the --force flag to │
│ deploy with uncommitted changes. │
│ • If you are using npm, try running npm ci to avoid changes to │
│ package-lock.json. │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
Error: Process completed with exit code 1.
##[debug]Finishing: Build and Publish to Oxygen
Operating system
OSX Tahoe 26.0.1
CLI version
3.86.1
Shell
zsh
Nodejs version
v22.12.0
What language and version are you using in your application?
Typescript 5.8.3 | React 18.2.0 | Hydrogen 2025.5.0