Skip to content

Commit f6c7bd9

Browse files
committed
add back permissions
1 parent a3611ff commit f6c7bd9

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
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 }}

.github/workflows/create-release-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ jobs:
129129
git config user.name "github-actions[bot]"
130130
git config user.email "github-actions[bot]@users.noreply.github.com"
131131
132-
# Update package.json version & lockfile
132+
# Update package.json version
133133
bun pm pkg set version="$NEW_VERSION"
134134
135135
git add .

0 commit comments

Comments
 (0)