From b3aabadb0652156dc8ce99b7ff8602002bbfe520 Mon Sep 17 00:00:00 2001 From: thetnaingtn Date: Sun, 24 Dec 2023 10:46:46 +0700 Subject: [PATCH] fix: update release.yml --- .github/workflows/release.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6831f27..9a82c36 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: fetch-depth: 0 @@ -33,8 +33,9 @@ jobs: GITHUB_TOKEN: ${{ secrets.PUBLISHER_TOKEN }} - name: Upload binaries - uses: actions/upload-artifact + uses: actions/upload-artifact@v4 with: + name: binaries path: | dist !homebrew @@ -93,7 +94,6 @@ jobs: if [ "${node_os}" = "windows" ]; then bin="${bin}.exe" fi - pwd install -D ../${{ matrix.os }}/${bin} ${node_pkg}/bin/${bin} cd "${node_pkg}" npm publish --access public @@ -109,11 +109,7 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 - - - name: Set the release version - shell: bash - run: echo "RELEASE_VERSION=${GITHUB_REF:11}" >> $GITHUB_ENV - + - name: Install Node uses: actions/setup-node@v4 with: