Skip to content

Commit

Permalink
chore: update release draft variables to set correctly (#647)
Browse files Browse the repository at this point in the history
  • Loading branch information
Anemy authored Jan 8, 2024
1 parent d3da9c7 commit b01ca16
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/draft-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
PREV_VERSION_TAG=$(gh api repos/:owner/:repo/releases --jq '. | map(select(.draft == false)) | .[0] | .tag_name')
PREV_VERSION=$(npx semver --coerce ${PREV_VERSION_TAG})
NEXT_VERSION=$(npx semver -i $VERSION_INPUT $PREV_VERSION)
NEXT_VERSION=$(npx semver -i $VERSION_BUMP $PREV_VERSION)
else
NEXT_VERSION=${{ github.event.inputs.exactVersion }}
fi
Expand All @@ -59,7 +59,7 @@ jobs:
npx semver v"${NEXT_VERSION}"
npm version "${NEXT_VERSION}" --no-git-tag-version
echo "RELEASE_TAG=v${NEXT_VERSION}" >> $GITHUB_ENV
echo "RELEASE_TAG=v${NEXT_VERSION}" >> "$GITHUB_ENV"
- name: Validate release tag
shell: bash
Expand Down Expand Up @@ -98,7 +98,7 @@ jobs:
ls *.vsix.sig
gh release create "${RELEASE_TAG}" \
--title "${RELEASE_VERSION}" \
--title "${RELEASE_TAG}" \
--notes "Edit the release notes before publishing." \
--target main \
--draft \
Expand Down

0 comments on commit b01ca16

Please sign in to comment.