From c9b766703eef3b9603e3f5ba9f5cf17e57446285 Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Tue, 16 Jan 2024 17:22:43 +0000 Subject: [PATCH] ci(cd): add missing `id-token` for github package job --- .github/workflows/cd.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index deacd79..5de11de 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -52,7 +52,7 @@ jobs: - name: Publish to NPM env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - # Build docs and TS definitions and remove dev values + # Build docs and TS definitions, and remove dev values # from package.json before publishing to reduce package size run: | npm i --ignore-scripts @@ -67,6 +67,7 @@ jobs: runs-on: ubuntu-latest permissions: contents: read + id-token: write packages: write steps: - name: Check out repo @@ -89,7 +90,7 @@ jobs: - name: Publish to GitHub Packages env: NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # Build docs and TS definitions and remove dev values + # Build docs and TS definitions, and remove dev values # from package.json before publishing to reduce package size run: | npm i --ignore-scripts