Skip to content

Commit

Permalink
Merge pull request #23075 from storybookjs/kasper/gh-token-for-releas…
Browse files Browse the repository at this point in the history
…e-pr-scripts

Release: Use release environment in release scripts
(cherry picked from commit d14f692)
  • Loading branch information
kasperpeulen authored and github-actions[bot] committed Jun 17, 2023
1 parent fc1bc9b commit b6f4e65
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/prepare-patch-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
prepare-patch-pull-request:
name: Prepare patch pull request
runs-on: ubuntu-latest
environment: release
defaults:
run:
working-directory: scripts
Expand All @@ -27,6 +28,7 @@ jobs:
uses: actions/checkout@v3
with:
ref: main
token: ${{ secrets.GH_TOKEN }}

- name: Setup Node.js
uses: actions/setup-node@v3
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/prepare-prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
prepare-prerelease-pull-request:
name: Prepare prerelease pull request
runs-on: ubuntu-latest
environment: release
defaults:
run:
working-directory: scripts
Expand All @@ -48,6 +49,7 @@ jobs:
# this needs to be set to a high enough number that it will contain the last version tag
# as of May 2023, the whole repo had 55K commits
fetch-depth: 10000
token: ${{ secrets.GH_TOKEN }}

- name: Setup Node.js
uses: actions/setup-node@v3
Expand Down

0 comments on commit b6f4e65

Please sign in to comment.