The shopify/oxygenctl-action is being deprecated and all merchants are encouraged to migrate to the Hydrogen CLI deploy command
[!IMPORTANT]
To use the deploy command, upgrade your Hydrogen project to use Hydrogen CLI v7.0.0 or later: npm install @shopify/cli-hydrogen@latest.
Understanding the code changes
This pull request will try to automate the migration for you but you might need to make manual changes. There are two important changes:
Migrate from shopify/oxygenctl-action to use npx shopify hydrogen deploy
Remove shopify/github-deployment-action
[!TIP]
Try viewing the file changes with white space disabled, since there may be unrelated formatting changes.
Manual changes
If you've heavily modified your workflow file(s) and the diff generated by this pull request is too large, you can implement these changes yourself. Here are some simplified examples of the required updates:
Migrate from shopify/oxygenctl-action to npx shopify hydrogen deploy
Command `hydrogen deploy` not found.error
The `deploy` command was publicly released with `@shopify/cli-hydrogen` v7.0.0. You'll need to update to v7.0.0 or later in order to use `deploy`. Learn more about the release in the [changelog](https://github.com/Shopify/hydrogen/blob/main/packages/cli/CHANGELOG.md#700).
Nonexistent flag error
The `--build-command` and `--no-verify` flags were released with `@shopify/cli-hydrogen` v7.1.0. If your workflow file includes those flags, you'll need to update to v7.1.0 or later to use them. Learn more about the release in the [changelog](https://github.com/Shopify/hydrogen/blob/main/packages/cli/CHANGELOG.md#710).
Introducing the
deploy
commandThe
shopify/oxygenctl-action
is being deprecated and all merchants are encouraged to migrate to the Hydrogen CLIdeploy
commandUnderstanding the code changes
This pull request will try to automate the migration for you but you might need to make manual changes. There are two important changes:
shopify/oxygenctl-action
to usenpx shopify hydrogen deploy
shopify/github-deployment-action
Manual changes
If you've heavily modified your workflow file(s) and the diff generated by this pull request is too large, you can implement these changes yourself. Here are some simplified examples of the required updates:
Migrate from
shopify/oxygenctl-action
tonpx shopify hydrogen deploy
Remove
shopify/github-deployment-action
Troubleshooting
The `deploy` command was publicly released with `@shopify/cli-hydrogen` v7.0.0. You'll need to update to v7.0.0 or later in order to use `deploy`. Learn more about the release in the [changelog](https://github.com/Shopify/hydrogen/blob/main/packages/cli/CHANGELOG.md#700).Command `hydrogen deploy` not found.
error
The `--build-command` and `--no-verify` flags were released with `@shopify/cli-hydrogen` v7.1.0. If your workflow file includes those flags, you'll need to update to v7.1.0 or later to use them. Learn more about the release in the [changelog](https://github.com/Shopify/hydrogen/blob/main/packages/cli/CHANGELOG.md#710).Nonexistent flag
error