diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bd8f7e4..b0e3815 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,8 +12,11 @@ jobs: packages: write steps: - - name: create .npmrc - run: echo -e "//npm.pkg.github.com/:_authToken=${{ secrets.NPM_TOKEN }}\n@preservetube:registry=https://npm.pkg.github.com/" > .secret_npmrc + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Create .npmrc + run: echo -e "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}\n@preservetube:registry=https://npm.pkg.github.com/" >$HOME/.npmrc - name: Login to GitHub Container Registry uses: docker/login-action@v2 @@ -29,6 +32,4 @@ jobs: uses: docker/build-push-action@v5 with: push: true - secret-files: | - "npmrc=./.secret_npmrc" tags: ghcr.io/${{ github.repository }}:latest \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index e9b80ef..896b3d0 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 --mount=type=secret,id=npmrc,target=/root/.npmrc yarn +RUN yarn CMD ["node", "index.js"] \ No newline at end of file