From 6a59b8c57a77724fa23383c5e77f06fec777365c Mon Sep 17 00:00:00 2001 From: Josh Shor Date: Wed, 22 Nov 2023 11:51:05 -0500 Subject: [PATCH] ci: migrates from hub to gh CLI #124 GitHub Actions has replaced hub CLI with gh CLI, breaking the artifact publishing step. --- .github/workflows/merge.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/merge.yml b/.github/workflows/merge.yml index a0d77da..9842541 100644 --- a/.github/workflows/merge.yml +++ b/.github/workflows/merge.yml @@ -106,10 +106,10 @@ jobs: set -x assets=() for asset in ./build/stage/**/*; do - assets+=("-a" "$asset") + assets+=("$asset") done RELEASE_VERSION=$(echo $(ls build/stage| head -1)) - hub release create "${assets[@]}" -m "v$RELEASE_VERSION" "$RELEASE_VERSION" + gh release create -t "v$RELEASE_VERSION" "$RELEASE_VERSION" "${assets[@]}" env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -127,7 +127,7 @@ jobs: path: dist - uses: actions/setup-node@v1 with: - node-version: 14 + node-version: 20 registry-url: https://registry.npmjs.org/ - run: npm publish env: