1
mirror of https://github.com/jakejarvis/hugo-extended.git synced 2026-06-14 15:45:27 -04:00

fix check-releases CI to account for hugoVersion field in package.json

This commit is contained in:
2021-10-16 07:29:56 -04:00
parent abd1ca427f
commit c4b08ffb14
+4 -2
View File
@@ -14,10 +14,12 @@ jobs:
run: |
HUGO_VERSION=$(curl --silent https://api.github.com/repos/gohugoio/hugo/releases/latest | jq -r .tag_name | sed 's/v//')
echo "::set-output name=VERSION::$HUGO_VERSION"
- name: Get latest package version
- name: Get current package version
id: package_version
run: |
PACKAGE_VERSION=$(npm show hugo-extended version)
setVersion=$(npm show hugo-extended hugoVersion)
npmVersion=$(npm show hugo-extended version)
PACKAGE_VERSION="${setVersion:-$npmVersion}"
echo "::set-output name=VERSION::$PACKAGE_VERSION"
- name: Compare versions
id: update