diff --git a/.github/workflows/publish-github.yml b/.github/workflows/publish-github.yml index 13b6dac..cb6a6ec 100644 --- a/.github/workflows/publish-github.yml +++ b/.github/workflows/publish-github.yml @@ -20,6 +20,7 @@ jobs: uses: actions/setup-node@v4 with: node-version: '22.x' + registry-url: 'https://npm.pkg.github.com' cache: yarn - name: Install dependencies @@ -28,12 +29,7 @@ jobs: - name: Build package run: yarn build - - name: Add .npmrc - run: | - echo "registry=https://npm.pkg.github.com/" > .npmrc - echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> .npmrc - - name: Publish to GitHub - run: npm publish --scope=@internxt --registry=https://npm.pkg.github.com --tag latest + run: yarn publish env: NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}