From 87676c42dc7a8e611d0a896a9cffb6f8c868cd35 Mon Sep 17 00:00:00 2001 From: Jonathan Adshead Date: Tue, 6 Feb 2024 14:15:51 -0800 Subject: [PATCH] chore(release-please): use npmrc and set registry --- .github/workflows/release-please.yml | 3 ++- .npmrc | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 .npmrc diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 1962432..54188f5 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -25,10 +25,11 @@ jobs: - uses: actions/setup-node@v4 with: node-version: 20 + registry-url: 'https://registry.npmjs.org' if: ${{ steps.release.outputs.release_created }} - run: npm ci if: ${{ steps.release.outputs.release_created }} - - run: npm publish + - run: npm publish --access public env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} if: ${{ steps.release.outputs.release_created }} \ No newline at end of file diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..5a089d9 --- /dev/null +++ b/.npmrc @@ -0,0 +1,2 @@ +registry=https://registry.npmjs.org +engine-strict=true \ No newline at end of file