Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Publish to NPM & Github
on:
pull_request:
types:
- closed
branches:
- main
- rel/**

permissions:
id-token: write # Required for OIDC
contents: write

jobs:
publish:
if: |
github.event.pull_request.merged == true &&
contains(github.event.pull_request.title, 'chore: Release')
uses: OneSignal/sdk-actions/.github/workflows/publish-npm-github.yml@main
with:
branch: ${{ github.event.pull_request.base.ref }}
3 changes: 1 addition & 2 deletions .github/workflows/create-release-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,8 @@ jobs:
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"

# Update package.json version & lockfile
# Update package.json version
bun pm pkg set version="$NEW_VERSION"
bun install

git add .
git commit -m "Release $NEW_VERSION"
Expand Down
Loading