diff --git a/pages/blog/automated-releases.md b/pages/blog/automated-releases.md index c5d3821c34bb..a23adb9fffe4 100644 --- a/pages/blog/automated-releases.md +++ b/pages/blog/automated-releases.md @@ -195,8 +195,8 @@ To share the output, you must assign an `id` to the step and declare a variable - name: Get version from package.json after release step id: extractver run: | - npm run get-version --silent - echo "version=$(npm run get-version --silent)" >> $GITHUB_ENV + version=$(npm run get-version --silent) + echo "version=$version" >> $GITHUB_OUTPUT ``` You can access the shared value by the `id` and a variable name like `steps.extractver.outputs.version`. We use it, for example, in the condition that specifies if further steps of the workflow should be triggered or not. If the version in `package.json` changed after GitHub and NPM step, this means we should proceed with Docker publishing and pull request creation: