From 47bfb220566cc8e0ace3d7377a837176a8d89458 Mon Sep 17 00:00:00 2001 From: ImLunaHey <105922175+ImLunaHey@users.noreply.github.com> Date: Thu, 21 Sep 2023 22:15:45 +0930 Subject: [PATCH] chore: fix release --- .github/workflows/ci.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 73f75d3..98c6488 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -75,9 +75,17 @@ jobs: - name: Bump package version run: npx standard-version --prerelease nightly + - name: Get current tag + id: current_tag + run: | + echo "current_tag=$(git describe --tags --abbrev=0)" + - name: Push changes run: git push --follow-tags origin main + - name: Create package for Github release + run: npm pack + - name: Create Github release uses: ncipollo/release-action@v1.13.0 with: @@ -85,9 +93,10 @@ jobs: allowUpdates: true draft: false makeLatest: true - name: ${{ github.ref_name }} + name: ${{ steps.current_tag.outputs.current_tag }} body: ${{ steps.changelog.outputs.changes }} token: ${{ github.token }} + artifacts: '*.tgz' - name: Publish to NPM run: npm run publish