From 6066aa07d11b13c8d8446c35d9c2231f8fbcd9f5 Mon Sep 17 00:00:00 2001 From: larryrider Date: Fri, 31 Jul 2026 15:57:34 +0200 Subject: [PATCH] feat: update .npmrc creation step in GitHub Actions workflows for clarity --- .github/workflows/publish-github.yml | 8 +++++--- .github/workflows/publish-npm.yml | 10 +++++----- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/publish-github.yml b/.github/workflows/publish-github.yml index a59f839..0820bb1 100644 --- a/.github/workflows/publish-github.yml +++ b/.github/workflows/publish-github.yml @@ -18,7 +18,11 @@ jobs: uses: actions/setup-node@v6 with: node-version: ${{ matrix.node-version }} - registry-url: 'https://npm.pkg.github.com' + + - name: Create .npmrc + run: | + echo "@internxt:registry=https://npm.pkg.github.com/" > .npmrc + echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" - name: Install dependencies run: npm ci @@ -28,5 +32,3 @@ jobs: - name: Publish run: npm publish --scope=@internxt --access public - env: - NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml index aa40803..816eb7d 100644 --- a/.github/workflows/publish-npm.yml +++ b/.github/workflows/publish-npm.yml @@ -19,16 +19,16 @@ jobs: with: node-version: ${{ matrix.node-version }} + - name: Create .npmrc + run: | + echo "registry=https://registry.npmjs.org/" > .npmrc + echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> .npmrc + - name: Install dependencies run: npm ci - name: Build run: npm run build - - name: Create .npmrc - run: | - echo "registry=https://registry.npmjs.org/" > .npmrc - echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> .npmrc - - name: Publish run: npm publish --scope=@internxt --access public