We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35e5ac0 commit 30bacf7Copy full SHA for 30bacf7
.github/workflows/cd.yml
@@ -0,0 +1,23 @@
1
+# Filename (cd.yml) should match the workflow filename in Trusted Publisher setting on npmjs
2
+name: Publish to NPM & Github
3
+on:
4
+ pull_request:
5
+ types:
6
+ - closed
7
+ branches:
8
+ - main
9
+ - rel/**
10
+
11
+permissions:
12
+ id-token: write # Required for OIDC
13
+ contents: write
14
15
+jobs:
16
+ publish:
17
+ if: |
18
+ github.event.pull_request.merged == true &&
19
+ contains(github.event.pull_request.title, 'chore: Release')
20
+ uses: OneSignal/sdk-actions/.github/workflows/publish-npm-github.yml@main
21
+ with:
22
+ branch: ${{ github.event.pull_request.base.ref }}
23
+ packages: '["com.onesignal.unity.core", "com.onesignal.unity.android", "com.onesignal.unity.ios"]'
.github/workflows/publish-to-npm.yml
0 commit comments