Skip to content

Commit

Permalink
chore: fix release setup
Browse files Browse the repository at this point in the history
  • Loading branch information
stipsan committed Jul 31, 2023
1 parent 6e5abb5 commit a878ce6
Show file tree
Hide file tree
Showing 4 changed files with 24,009 additions and 14,051 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

permissions:
contents: read # for checkout

jobs:
log-the-inputs:
name: Log inputs
Expand Down Expand Up @@ -100,6 +103,11 @@ jobs:
- run: npm test --if-present

release:
permissions:
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
needs: [build, test]
# only run if opt-in during workflow_dispatch
if: always() && github.event.inputs.release == 'true' && needs.build.result != 'failure' && needs.test.result != 'failure' && needs.test.result != 'cancelled'
Expand Down
Loading

0 comments on commit a878ce6

Please sign in to comment.