From bf4dca8bc8346bf6868a7267444dafa0d8a6a1f9 Mon Sep 17 00:00:00 2001 From: localhost Date: Tue, 25 Feb 2025 21:57:13 +0100 Subject: [PATCH] may god make this work --- .github/workflows/ci.yml | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a202813..9504f87 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,18 +10,12 @@ jobs: permissions: contents: read packages: write - id-token: write steps: - - uses: actions/checkout@v4 - - - uses: actions/setup-node@v4 - with: - node-version: "20" - registry-url: "https://npm.pkg.github.com" - scope: "@${{ github.repository_owner }}" + - name: create .npmrc + run: 'echo -e "//npm.pkg.github.com/:_authToken=$GITHUB_TOKEN\n@preservetube:registry=https://npm.pkg.github.com/" > .secret_npmrc' env: - NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Login to GitHub Container Registry uses: docker/login-action@v2 @@ -36,7 +30,8 @@ jobs: - name: Build and push uses: docker/build-push-action@v5 with: + context: . push: true - tags: ghcr.io/${{ github.repository }}:latest - env: - NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + secret-files: | + "npmrc=./.secret_npmrc" + tags: ghcr.io/${{ github.repository }}:latest \ No newline at end of file