From 3b3cd716cf4594ffd26a280dcaef9261c1c796b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eduard=20Bardaj=C3=AD=20Puig?= Date: Mon, 25 Mar 2024 10:03:16 +0100 Subject: [PATCH] Set public publish access --- .github/workflows/build-and-publish-main.yaml | 2 +- .github/workflows/build-and-publish-pr.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-publish-main.yaml b/.github/workflows/build-and-publish-main.yaml index 3199431..4bcd85b 100644 --- a/.github/workflows/build-and-publish-main.yaml +++ b/.github/workflows/build-and-publish-main.yaml @@ -21,6 +21,6 @@ jobs: run: npm run build - name: Publish to NPM package registry - run: npm publish + run: npm publish --access=public env: NODE_AUTH_TOKEN: ${{ secrets.NPM_PACKAGE_REGISTRY_TOKEN }} diff --git a/.github/workflows/build-and-publish-pr.yaml b/.github/workflows/build-and-publish-pr.yaml index 7f07652..2e70e49 100644 --- a/.github/workflows/build-and-publish-pr.yaml +++ b/.github/workflows/build-and-publish-pr.yaml @@ -34,7 +34,7 @@ jobs: CURRENT_VERSION: ${{ steps.current-version.outputs.CURRENT_VERSION }} - name: Publish to NPM package registry - run: npm publish --tag pr-$PR_NUMBER + run: npm publish --access=public --tag pr-$PR_NUMBER env: NODE_AUTH_TOKEN: ${{ secrets.NPM_PACKAGE_REGISTRY_TOKEN }} PR_NUMBER: ${{ github.event.number }}