From 7433aa856e29563c501149c43dc780401ad31bc8 Mon Sep 17 00:00:00 2001 From: Javier Fernandes Date: Mon, 29 Jul 2024 10:53:30 -0300 Subject: [PATCH] fixing publish condition. It was comparing a true string with a boolean string --- .github/workflows/public-package-build-test-release-npm.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/public-package-build-test-release-npm.yml b/.github/workflows/public-package-build-test-release-npm.yml index 8729d11..7cf1469 100644 --- a/.github/workflows/public-package-build-test-release-npm.yml +++ b/.github/workflows/public-package-build-test-release-npm.yml @@ -61,7 +61,7 @@ jobs: run: npm pack - name: Publish package - if: inputs.publish == 'true' && (contains(github.ref ,'refs/heads/release') || contains(github.ref ,'refs/heads/hotfix') || contains(github.ref ,'refs/heads/master') || contains(github.ref ,'refs/heads/main')) + if: inputs.publish && (contains(github.ref ,'refs/heads/release') || contains(github.ref ,'refs/heads/hotfix') || contains(github.ref ,'refs/heads/master') || contains(github.ref ,'refs/heads/main')) run: | npm config set access public npm publish \ No newline at end of file