diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6dd22fb..c877774 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,13 +7,20 @@ jobs: docker: if: ${{ github.ref == 'refs/heads/main' }} runs-on: ubuntu-latest + permissions: + contents: read + packages: write + steps: - name: Login to GitHub Container Registry uses: docker/login-action@v1 with: registry: ghcr.io username: ${{ github.repository_owner }} - password: ${{ secrets.DOCKER_PASSWORD }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Authenticate with private NPM package + run: echo "//registry.npmjs.org/:_authToken=${{ secrets.GITHUB_TOKEN }}" > ~/.npmrc - name: Set up Docker Buildx uses: docker/setup-buildx-action@v1