Skip to content

Commit

Permalink
update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
sbwml authored Sep 13, 2024
1 parent fe2eb02 commit 260e0dc
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,8 @@ jobs:
TAGS=$(curl -sk https://api.github.com/repos/sbwml/node-latest-centos/tags | grep "name")
if [[ ${{ matrix.tag }} == "lts" ]]; then
LATEST_VERSION=$(curl -s "https://api.github.com/repos/nodejs/node/releases" | grep 'Version.*LTS' | sed '/body/d' | head -1 | grep -oP "(?<=Version )\d+\.\d+\.\d+")
echo "PRE_RELEASE=false" >> "$GITHUB_ENV"
else
LATEST_VERSION=$(curl -s "https://api.github.com/repos/nodejs/node/releases" | grep 'Version.*Current'| sed '/body/d' | head -1 | grep -oP "(?<=Version )\d+\.\d+\.\d+")
echo "PRE_RELEASE=true" >> "$GITHUB_ENV"
fi
if [[ "$TAGS" == *"$LATEST_VERSION"* ]]; then
echo -e " \n\e[1;32mnode-v$LATEST_VERSION is already the latest version.\e[0m\n"
Expand Down Expand Up @@ -71,11 +69,10 @@ jobs:
if: env.next == 'true'
uses: ncipollo/[email protected]
with:
name: node-v${{ env.VERSION }}
name: node-v${{ env.VERSION }}-${{ matrix.tag }}
allowUpdates: true
tag: v${{ env.VERSION }}
commit: master
replacesArtifacts: true
prerelease: ${{ env.PRE_RELEASE }}
token: ${{ secrets.workflow_token }}
artifacts: out/*

0 comments on commit 260e0dc

Please sign in to comment.