From c7421495dc7e2152881280e254725cbb12691ce4 Mon Sep 17 00:00:00 2001 From: Thomas Kunwar <20840228+yathomasi@users.noreply.github.com> Date: Mon, 10 Jul 2023 10:46:20 +0545 Subject: [PATCH] fix versioning for workflow dispatch --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c5d010e2..c0038412 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -18,8 +18,8 @@ jobs: registry-url: 'https://registry.npmjs.org' scope: '@dvcorg' - run: | - gh release create $(basename ${{github.head_ref }}) --generate-notes cd ./packages/gatsby-theme-iterative + gh release create v$(node -p "require('./package.json').version") --generate-notes yarn publish env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}