private packages stuff

This commit is contained in:
localhost 2025-02-25 20:56:29 +01:00
parent 5c56e139c7
commit f16fdefb74
1 changed files with 8 additions and 1 deletions

View File

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