Skip to content

Commit 30bacf7

Browse files
committed
use new shared publish workflow
1 parent 35e5ac0 commit 30bacf7

File tree

2 files changed

+23
-36
lines changed

2 files changed

+23
-36
lines changed

.github/workflows/cd.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)