Skip to content

Commit 516bd62

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

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
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 }}

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ jobs:
131131
132132
# Update package.json version & lockfile
133133
bun pm pkg set version="$NEW_VERSION"
134-
bun install
135134
136135
git add .
137136
git commit -m "Release $NEW_VERSION"

0 commit comments

Comments
 (0)