diff --git a/.github/workflows/chromatic.yml b/.github/workflows/chromatic.yml index 7891157..15b7820 100644 --- a/.github/workflows/chromatic.yml +++ b/.github/workflows/chromatic.yml @@ -11,9 +11,20 @@ jobs: chromatic-deployment: # Operating System runs-on: ubuntu-latest + permissions: + contents: read + packages: read # Job steps steps: + - name: Checkout uses: actions/checkout@v3 + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version: 18 + registry-url: "https://npm.pkg.github.com" + scope: '@contentful' + always-auth: true - name: Install dependencies run: npm install # 👇 Adds Chromatic as a step in the workflow