Skip to content

Commit

Permalink
fix: add permissions: write to create release action
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelGSS committed Nov 27, 2024
1 parent 6d8cfef commit 776bc30
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/test-and-release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: Test & Maybe Release

on: [push, pull_request]

jobs:
test:
strategy:
Expand All @@ -26,6 +28,8 @@ jobs:
npm run test:ci
release:
name: Release
permissions:
contents: write
needs: test
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
Expand Down

0 comments on commit 776bc30

Please sign in to comment.