@@ -61,10 +61,13 @@ jobs:
6161 # - run: npm ci
6262 - run : npm install --no-package-lock
6363
64- # TODO: Add --provenance once the repo is public
64+ # OIDC trusted publishing requires npm >=11.5.1; Node 22's bundled npm is 10.x.
65+ - name : Ensure npm CLI supports OIDC trusted publishing
66+ run : npm install -g npm@^11.5.1
67+
6568 - run : npm run publish-all
6669 env :
67- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
70+ NPM_CONFIG_PROVENANCE : " true "
6871
6972 publish-github-container-registry :
7073 runs-on : ubuntu-latest
@@ -80,23 +83,23 @@ jobs:
8083 - uses : actions/checkout@v6
8184
8285 - name : Log in to the Container registry
83- uses : docker/login-action@v3
86+ uses : docker/login-action@v4
8487 with :
8588 registry : ghcr.io
8689 username : ${{ github.actor }}
8790 password : ${{ secrets.GITHUB_TOKEN }}
8891
8992 - name : Extract metadata (tags, labels) for Docker
9093 id : meta
91- uses : docker/metadata-action@v5
94+ uses : docker/metadata-action@v6
9295 with :
9396 images : ghcr.io/${{ github.repository }}
9497
9598 - name : Set up QEMU
9699 uses : docker/setup-qemu-action@v3
97100
98101 - name : Set up Docker Buildx
99- uses : docker/setup-buildx-action@v3
102+ uses : docker/setup-buildx-action@v4
100103
101104 - name : Build and push Docker image
102105 id : push
@@ -109,7 +112,7 @@ jobs:
109112 labels : ${{ steps.meta.outputs.labels }}
110113
111114 - name : Generate artifact attestation
112- uses : actions/attest-build-provenance@v3
115+ uses : actions/attest-build-provenance@v4
113116 with :
114117 subject-name : ghcr.io/${{ github.repository }}
115118 subject-digest : ${{ steps.push.outputs.digest }}
0 commit comments