File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 3333 echo "nodejs_version=$(grep "^nodejs\s" .tool-versions | cut -f2 -d' ')" >> $GITHUB_OUTPUT
3434 echo "python_version=$(grep "^python\s" .tool-versions | cut -f2 -d' ')" >> $GITHUB_OUTPUT
3535 echo "terraform_version=$(grep "^terraform\s" .tool-versions | cut -f2 -d' ')" >> $GITHUB_OUTPUT
36- # TODO: Get the version, but it may not be the .version file as this should come from the CI/CD Pull Request Workflow
37- echo "version=$(head -n 1 .version 2> /dev/null || echo unknown )" >> $GITHUB_OUTPUT
36+ # Read version from package.json for npm projects
37+ echo "version=v$(node -p "require('./package.json').version" )" >> $GITHUB_OUTPUT
3838 - name : " List variables"
3939 run : |
4040 export BUILD_DATETIME="${{ steps.variables.outputs.build_datetime }}"
You can’t perform that action at this time.
0 commit comments