Skip to content

Commit

Permalink
Merge pull request #7 from sanity-io/releases
Browse files Browse the repository at this point in the history
chore: updated release workflow
  • Loading branch information
jjburbridge authored Nov 25, 2024
2 parents 1d8989f + f27459e commit 5e440c1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,20 @@ jobs:
runs-on: ubuntu-latest
name: Semantic release
steps:
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ secrets.ECOSPARK_APP_ID }}
private-key: ${{ secrets.ECOSPARK_APP_PRIVATE_KEY }}
- uses: actions/checkout@v4
with:
# Need to fetch entire commit history to
# analyze every commit since last release
fetch-depth: 0
# Uses generated token to allow pushing commits back
token: ${{ steps.app-token.outputs.token }}
# Make sure the value of GITHUB_TOKEN will not be persisted in repo's config
persist-credentials: false
- uses: actions/setup-node@v4
with:
cache: npm
Expand All @@ -124,5 +133,5 @@ jobs:
# e.g. git tags were pushed but it exited before `npm publish`
if: always()
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
2 changes: 1 addition & 1 deletion .releaserc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"extends": "@sanity/semantic-release-preset",
"branches": ["main", "fix-semantic-release"]
"branches": ["main"]
}

0 comments on commit 5e440c1

Please sign in to comment.