From 0e50f7c61f1eb8a22aa607a5e454e32cfd189edc Mon Sep 17 00:00:00 2001 From: Said Sef Date: Wed, 5 Jul 2023 17:06:47 +0100 Subject: [PATCH] Fixed release workflow bug, it will now use PACKAGE variable Also, moved npm publish to only run after tagging and release has been completed --- .github/workflows/release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 37716f5..35a5582 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -66,7 +66,7 @@ jobs: result-encoding: string script: | const { repo: { owner, repo }, sha } = context; - const tag = process.env.DATE; + const tag = process.env.PACKAGE; let release_id = 0; try { @@ -96,8 +96,8 @@ jobs: npm: runs-on: ubuntu-latest if: ${{ contains(github.ref, 'main') }} - name: GitHub Release - needs: [tagging] + name: NPM Release + needs: [tagging, release] steps: - name: Git Checkout uses: actions/checkout@v3