Skip to content

Commit

Permalink
Update template-main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
braybatista authored Feb 19, 2024
1 parent df32e6f commit d6410ad
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/template-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:
pull_request:
branches: [ main ]

env:
GH_TOKEN: ${{ secrets.PERSONAL_TOKEN }}
permissions:
contents: read # for checkout

jobs:
release:
Expand All @@ -16,7 +16,7 @@ jobs:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance
#id-token: write # to enable use of OIDC for npm provenance
steps:
- uses: actions/checkout@v2
- name: Set up JDK 17
Expand All @@ -34,4 +34,6 @@ jobs:
- name: setup semantic-release
run: npm install -g semantic-release @semantic-release/git @semantic-release/changelog -D
- name: release
env:
GITHUB_TOKEN: ${{ secrets.PERSONAL_TOKEN }}
run: npx semantic-release

0 comments on commit d6410ad

Please sign in to comment.