hopefully

This commit is contained in:
localhost 2025-02-25 22:06:38 +01:00
parent bd42ff8054
commit dc721b92c0
2 changed files with 6 additions and 5 deletions

View File

@ -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

View File

@ -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"]