diff --git a/.github/workflows/new-version.yml b/.github/workflows/new-version.yml index 8863362..1d005fd 100644 --- a/.github/workflows/new-version.yml +++ b/.github/workflows/new-version.yml @@ -5,6 +5,10 @@ on: branches: # only trigger when a commit was pushed to main - main +permissions: + # this is required to create a release + contents: read + jobs: publish: runs-on: ubuntu-latest diff --git a/.github/workflows/pr-preview.yml b/.github/workflows/pr-preview.yml index 6ff4439..6e4d327 100644 --- a/.github/workflows/pr-preview.yml +++ b/.github/workflows/pr-preview.yml @@ -10,6 +10,12 @@ on: concurrency: preview-${{ github.ref }} +permissions: + # allow the action to push storybook build to the gh-pages branch + contents: write + # allow the action to add a comment to the PR + pull-requests: write + jobs: deploy-preview: runs-on: ubuntu-latest @@ -21,7 +27,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 18.0.0 - name: Install dependencies and build storybook run: |