Skip to content

Commit

Permalink
update publish permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
zieka committed Nov 4, 2024
1 parent ca05126 commit 8d06168
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
release-js:
runs-on: ubuntu-latest
permissions:
contents: read
contents: write
id-token: write
steps:
- uses: actions/checkout@v4
Expand All @@ -49,7 +49,7 @@ jobs:
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add package.json package-lock.json
git commit -m "bump version ${GITHUB_REF#refs/tags/}"
git push origin HEAD:main
git push https://${GH_TOKEN}@github.com/openrewrite/rewrite-javascript.git HEAD:main
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down

0 comments on commit 8d06168

Please sign in to comment.