diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 767354774..b4922921e 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -25,11 +25,6 @@ jobs: with: node-version: 20 - - name: 🔐 Configure Private Registry - run: | - echo "@mintel:registry=https://git.infra.mintel.me/api/packages/mmintel/npm" > .npmrc - echo "//git.infra.mintel.me/api/packages/mmintel/npm/:_authToken=${{ secrets.NPM_TOKEN }}" >> .npmrc - - name: Install dependencies run: pnpm install --no-frozen-lockfile env: diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 98e147b64..ba96a4cb7 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -170,11 +170,9 @@ jobs: with: node-version: 20 - - name: 🔐 Registry Auth - run: | - echo "@mintel:registry=https://git.infra.mintel.me/api/packages/mmintel/npm" > .npmrc - echo "//git.infra.mintel.me/api/packages/mmintel/npm/:_authToken=${{ secrets.NPM_TOKEN }}" >> .npmrc - name: Install dependencies + env: + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} run: | pnpm store prune pnpm install --no-frozen-lockfile @@ -385,12 +383,10 @@ jobs: uses: actions/setup-node@v4 with: node-version: 20 - - name: 🔐 Registry Auth - run: | - echo "@mintel:registry=https://git.infra.mintel.me/api/packages/mmintel/npm" > .npmrc - echo "//git.infra.mintel.me/api/packages/mmintel/npm/:_authToken=${{ secrets.NPM_TOKEN }}" >> .npmrc - name: Install dependencies id: deps + env: + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} run: | pnpm store prune pnpm install --no-frozen-lockfile diff --git a/.gitea/workflows/qa.yml b/.gitea/workflows/qa.yml index a311dc4ec..1b01eb3b0 100644 --- a/.gitea/workflows/qa.yml +++ b/.gitea/workflows/qa.yml @@ -23,10 +23,6 @@ jobs: - uses: actions/setup-node@v4 with: node-version: 20 - - name: 🔐 Registry Auth - run: | - echo "@mintel:registry=https://git.infra.mintel.me/api/packages/mmintel/npm" > .npmrc - echo "//git.infra.mintel.me/api/packages/mmintel/npm/:_authToken=${{ secrets.NPM_TOKEN }}" >> .npmrc - name: 📦 Cache node_modules uses: actions/cache@v4 id: cache-deps @@ -35,6 +31,8 @@ jobs: key: pnpm-${{ hashFiles('pnpm-lock.yaml') }} - name: Install if: steps.cache-deps.outputs.cache-hit != 'true' + env: + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} run: pnpm install --no-frozen-lockfile - name: 🌐 Install Chrome & Dependencies run: | diff --git a/.npmrc b/.npmrc index ea651854f..70ea8b5b1 100644 --- a/.npmrc +++ b/.npmrc @@ -1 +1,2 @@ @mintel:registry=https://git.infra.mintel.me/api/packages/mmintel/npm/ +//git.infra.mintel.me/api/packages/mmintel/npm/:_authToken=${NPM_TOKEN}