diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a360c82..d8c4832 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -16,7 +16,9 @@ jobs: with: node-version: "22.x" cache: pnpm + - name: Setup .npmrc + run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc + env: + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - run: pnpm install - run: pnpm publish --recursive --access public --no-git-checks - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.gitignore b/.gitignore index c3456df..a52fc3e 100644 --- a/.gitignore +++ b/.gitignore @@ -115,3 +115,6 @@ dist # Ignore build mistakes **/src/*.js **/src/*.d.ts + +# Created during publish workflow +/.npmrc