From 6939c930e1a0ae1332519aa0f72532b3d311f876 Mon Sep 17 00:00:00 2001 From: Berend Sliedrecht Date: Thu, 26 Oct 2023 12:28:51 +0200 Subject: [PATCH] do not write to .npmrc for release Signed-off-by: Berend Sliedrecht --- .github/workflows/build.yml | 13 ++++--------- .gitignore | 1 + 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 559dc377..4192e160 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -208,6 +208,7 @@ jobs: uses: actions/setup-node@v3 with: node-version: 18.x + registry-url: "https://registry.npmjs.org/" - uses: pnpm/action-setup@v2 with: @@ -239,20 +240,14 @@ jobs: LIB_ANONCREDS_PATH: ../../ run: pnpm test - - name: Set NPM config - if: | - github.event_name == 'release' || - (github.event_name == 'workflow_dispatch' && github.event.inputs.publish-wrappers == 'true') - run: | - echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> .npmrc - echo "registry=https://registry.npmjs.org/" >> .npmrc - echo "always-auth=true" >> .npmrc - - name: Publish JavaScript Wrapper if: | github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.event.inputs.publish-wrappers == 'true') run: npx lerna publish from-package --no-push --no-private --yes --no-git-tag-version + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + build-py: name: Build Python diff --git a/.gitignore b/.gitignore index 341ca6af..b99b105b 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,5 @@ out Cargo.lock .DS_Store .tmp +*.so *.tgz