Skip to content

Commit

Permalink
Merge pull request #8 from boxuk/monorepo-split-action
Browse files Browse the repository at this point in the history
Add GitHub Token Permissions
  • Loading branch information
jdamner authored May 23, 2024
2 parents 1b07752 + a0a9dd1 commit cb5e9c2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ on:
tags:
- "*"

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

permissions:
contents: write
pull-requests: write
Expand All @@ -19,6 +16,7 @@ permissions:
jobs:
packages_split:
runs-on: ubuntu-latest
name: Publish Package ${{ matrix.packages.local_path }}

strategy:
fail-fast: false
Expand Down Expand Up @@ -47,6 +45,8 @@ jobs:
- name: Split Monorepo
if: "!startsWith(github.ref, 'refs/tags/')"
uses: "symplify/monorepo-split-github-action@v2.3.0"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
package_directory: "packages/${{ matrix.packages.local_path }}"
repository_organization: "boxuk"
Expand All @@ -58,6 +58,8 @@ jobs:
- name: Split Monorepo with Tag
if: "startsWith(github.ref, 'refs/tags/')"
uses: "symplify/monorepo-split-github-action@v2.3.0"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag: ${GITHUB_REF#refs/tags/}
package_directory: "packages/${{ matrix.packages.local_path }}"
Expand Down

0 comments on commit cb5e9c2

Please sign in to comment.