Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,15 @@ on:
branches:
- main

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
build:
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down Expand Up @@ -77,6 +73,9 @@ jobs:
path: docs/dist

deploy:
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
Expand Down
14 changes: 9 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,11 @@ on:
- minor
- major

permissions:
contents: write
packages: write
pull-requests: write

jobs:
release:
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.release.outputs.release_created }}
Expand All @@ -61,6 +59,9 @@ jobs:
manifest-file: .release-please-manifest.json

publish:
permissions:
contents: read
packages: write
needs: release
if: ${{ needs.release.outputs.release_created == 'true' }}
runs-on: ubuntu-latest
Expand Down Expand Up @@ -100,6 +101,9 @@ jobs:

# Snapshot publishing on main branch (without release)
publish-snapshot:
permissions:
contents: read
packages: write
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
steps:
Expand Down
Loading