Skip to content

Commit 175d5f3

Browse files
committed
add back permissions
1 parent a3611ff commit 175d5f3

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/cd.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish to NPM
1+
name: Publish to NPM & Github
22
on:
33
pull_request:
44
types:
@@ -7,11 +7,15 @@ on:
77
- main
88
- rel/**
99

10+
permissions:
11+
id-token: write # Required for OIDC
12+
contents: write
13+
1014
jobs:
1115
publish:
1216
if: |
1317
github.event.pull_request.merged == true &&
1418
contains(github.event.pull_request.title, 'chore: Release')
15-
uses: OneSignal/sdk-actions/.github/workflows/npm-publish.yml@main
19+
uses: OneSignal/sdk-actions/.github/workflows/publish-npm-github.yml@main
1620
with:
1721
branch: ${{ github.event.pull_request.base.ref }}

0 commit comments

Comments
 (0)