From 12fbb33083ca833d7a5378e42ab7005ca792f6de Mon Sep 17 00:00:00 2001 From: larryrider Date: Wed, 23 Jul 2025 16:07:15 +0200 Subject: [PATCH] Refactor publish workflow to remove .npmrc setup and streamline publish command --- .github/workflows/publish-github.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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 }}