diff --git a/.github/workflows/prerelease.yaml b/.github/workflows/prerelease.yaml index 28501a81..2bf58f4d 100644 --- a/.github/workflows/prerelease.yaml +++ b/.github/workflows/prerelease.yaml @@ -69,7 +69,13 @@ jobs: run: | npx lerna publish from-git --yes - - name: Publish to GitHub Packages + - name: Update npm for git + run: | + rm -rf .npmrc + echo "@niledatabase:registry=https://npm.pkg.github.com/" >> .npmrc + echo "//npm.pkg.github.com/:_authToken=$NPM_TOKEN" >> .npmrc env: - NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Publish to git run: npx lerna publish from-git --yes --registry=https://npm.pkg.github.com/