Skip to content

Commit

Permalink
chore: allow release-plz to open changelog PRs (#31)
Browse files Browse the repository at this point in the history
- grant permissions to open PRs and add changelogs, needed for
release-please to do the thing
- run check and test in parallel. no need to have tests wait for lints.

hoping this fixes the error seen here where release please is unable to
open a PR

https://github.com/web3-storage/files-from-path/actions/runs/6932934315/job/18858238223

see:
https://github.com/google-github-actions/release-please-action/issues/709

License: MIT

Signed-off-by: Oli Evans <oli@protocol.ai>
  • Loading branch information
olizilla authored Nov 20, 2023
1 parent 7ae47f4 commit 350c916
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@ jobs:
node-version: 18
cache: 'npm'
- run: npm ci
- run: npm run build
- run: npm run lint

test:
needs: check
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand All @@ -38,10 +36,14 @@ jobs:

release:
if: (github.event_name == 'push' && github.ref == 'refs/heads/main')
needs: test
needs:
- test
- check
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: google-github-actions/release-please-action@v3
Expand Down

0 comments on commit 350c916

Please sign in to comment.