Skip to content

Commit eb32460

Browse files
authored
1 parent 70606a7 commit eb32460

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ jobs:
2424
os: [ubuntu-latest, macos-14, windows-latest]
2525
node: [18, 20]
2626
runs-on: ${{ matrix.os }}
27+
permissions:
28+
contents: write # to be able to publish a GitHub release
29+
issues: write # to be able to comment on released issues
30+
pull-requests: write # to be able to comment on released pull requests
31+
id-token: write # to enable use of OIDC for npm provenance
2732
services:
2833
redis:
2934
# See workaround https://github.com/actions/runner/issues/822#issuecomment-1524826092
@@ -54,8 +59,9 @@ jobs:
5459
BULL_REDIS_CONNECTION: ${{ (matrix.os == 'ubuntu-latest') && 'redis://127.0.0.1:6379/0' || '' }}
5560
run: npm run ${{ (matrix.os == 'ubuntu-latest') && 'test-verbose' || 'test' }}
5661
- name: Maybe Release
57-
if: matrix.os == 'ubuntu-latest' && matrix.node == 18 && github.event_name == 'push' && github.ref == 'refs/heads/main'
62+
if: matrix.os == 'ubuntu-latest' && matrix.node == 20 && github.event_name == 'push' && github.ref == 'refs/heads/main'
5863
env:
5964
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6065
NPM_TOKEN: ${{ secrets.NPM_TOKEN_ELEVATED }}
61-
66+
NPM_CONFIG_PROVENANCE: 'true'
67+

0 commit comments

Comments
 (0)