From b62b82474893ecff55149f1882c17dccdb291dd3 Mon Sep 17 00:00:00 2001 From: localhost Date: Tue, 25 Feb 2025 22:01:52 +0100 Subject: [PATCH] aaa --- .github/workflows/ci.yml | 4 +--- Dockerfile | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2d64b2e..bd8f7e4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,9 +13,7 @@ jobs: steps: - name: create .npmrc - run: 'echo -e "//npm.pkg.github.com/:_authToken=$GITHUB_TOKEN\n@preservetube:registry=https://npm.pkg.github.com/" > .secret_npmrc' - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: echo -e "//npm.pkg.github.com/:_authToken=${{ secrets.NPM_TOKEN }}\n@preservetube:registry=https://npm.pkg.github.com/" > .secret_npmrc - name: Login to GitHub Container Registry uses: docker/login-action@v2 diff --git a/Dockerfile b/Dockerfile index 896b3d0..b2b2ff8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,6 +4,6 @@ RUN mkdir -p /usr/src/preservetube/metadata WORKDIR /usr/src/preservetube/metadata COPY . /usr/src/preservetube/metadata -RUN yarn +RUN -mount=type=secret,id=npmrc,target=/root/.npmrc yarn CMD ["node", "index.js"] \ No newline at end of file