Skip to content

Commit

Permalink
chore: use the default github secret for changeset (#1754)
Browse files Browse the repository at this point in the history
### What does it do?

Changesets github action has been failing with a 403 using the env var:
GITHUB_TOKEN: ${{ secrets.CHANGESETS_GITHUB_TOKEN }}

This PR changes the release yaml to use the repository default so the
github actions runner can create the commits, branches and pull requests
that it needs
  • Loading branch information
jhoward1994 authored Jul 9, 2024
2 parents daae1f0 + 2c9c4ea commit 3ca60a1
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"commit": false,
"changelog": ["@changesets/changelog-github", { "repo": "strapi/design-system" }],
"access": "public",
"baseBranch": "develop",
"baseBranch": "main",
"fixed": [["@strapi/*"]],
"ignore": ["@strapi/design-system-docs"],
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
Expand Down
7 changes: 7 additions & 0 deletions .changeset/slimy-shirts-cover.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@strapi/design-system': patch
'@strapi/icons': patch
'@strapi/ui-primitives': patch
---

change github action to use default github secret
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:

concurrency: ${{ github.workflow }}-${{ github.ref }}

permissions:
contents: write
pull-requests: write

jobs:
release:
name: Release
Expand Down Expand Up @@ -49,7 +53,7 @@ jobs:
commit: 'chore: version packages for release'
title: 'chore: version packages for release'
env:
GITHUB_TOKEN: ${{ secrets.CHANGESETS_GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

find_package_version:
Expand Down

0 comments on commit 3ca60a1

Please sign in to comment.