Skip to content

Commit fe88ca7

Browse files
committed
add npm publish workflow
1 parent 55a44bc commit fe88ca7

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Publish to NPM
2+
on:
3+
pull_request:
4+
types:
5+
- closed
6+
branches:
7+
- main
8+
- rel/**
9+
10+
permissions:
11+
id-token: write # Required for OIDC
12+
contents: write
13+
14+
jobs:
15+
publish:
16+
if: |
17+
github.event.pull_request.merged == true &&
18+
contains(github.event.pull_request.title, 'chore: Release')
19+
uses: OneSignal/sdk-actions/.github/workflows/npm-publish.yml@main
20+
with:
21+
branch: ${{ github.event.pull_request.base.ref }}

0 commit comments

Comments
 (0)