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
5 changes: 5 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## Summary
{provide a thorough description of the changes}

## Testing Plan
{explain how this has been tested, and what additional testing should be done}
27 changes: 0 additions & 27 deletions .github/workflows/dependabot-auto-merge.yml

This file was deleted.

35 changes: 0 additions & 35 deletions .github/workflows/pull-request.yml

This file was deleted.

38 changes: 16 additions & 22 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
name: Release Kit

# NOTE: The release/publish pipeline runs in mParticle's org once the kit is accepted.
# It depends on mParticle-owned secrets (MP_INTEGRATIONS_SEMANTIC_RELEASE_BOT, NPM_AUTH_TOKEN,
# GPG_PRIVATE_KEY, GPG_PASSPHRASE), the reusable workflow mParticle/mparticle-workflows, and
# publish rights to the @mparticle npm scope. Those do not exist in the ROKT org, so this
# workflow mirrors the target pipeline; it is not expected to run from this repository.

on:
workflow_dispatch:
inputs:
Expand All @@ -15,6 +9,7 @@ on:
default: 'true'

jobs:
# Kit release is done from main branch.
confirm-public-repo-main-branch:
name: 'Confirm release is run from public/main branch'
uses: mParticle/mparticle-workflows/.github/workflows/sdk-release-repo-branch-check.yml@stable
Expand All @@ -25,12 +20,12 @@ jobs:
needs: confirm-public-repo-main-branch
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: NPM install
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: 20.x
node-version: 24.x

- name: Run NPM CI
run: npm ci
Expand All @@ -42,7 +37,7 @@ jobs:
run: npm run test

- name: Archive npm failure logs
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
if: failure()
with:
name: npm-logs
Expand All @@ -56,16 +51,15 @@ jobs:
- confirm-public-repo-main-branch
steps:
- name: Checkout development branch
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
repository: ROKT/mparticle-javascript-integration-roktpayplus
repository: mparticle-integrations/mparticle-javascript-integration-roktpayplus
ref: development

- name: Create and push release branch
run: |
git checkout -b release/${{ github.run_number }}
git push origin release/${{ github.run_number }}

release:
name: Perform Release
runs-on: ubuntu-latest
Expand All @@ -87,11 +81,10 @@ jobs:
GIT_AUTHOR_EMAIL: developers@mparticle.com
GIT_COMMITTER_NAME: mparticle-automation
GIT_COMMITTER_EMAIL: developers@mparticle.com
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

steps:
- name: Checkout public main branch
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
fetch-depth: 0
ref: main
Expand All @@ -108,13 +101,17 @@ jobs:
run: |
git pull origin release/${{ github.run_number }}
- name: Setup Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: 20.x
node-version: 24.x
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies
run: npm ci

- name: Ensure npm CLI supports OIDC
run: npm install -g npm@latest

- name: Release --dry-run
if: ${{ github.event.inputs.dryRun == 'true'}}
run: |
Expand All @@ -123,9 +120,8 @@ jobs:
if: ${{ github.event.inputs.dryRun == 'false'}}
run: |
npx semantic-release

- name: Archive npm failure logs
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
if: failure()
with:
name: npm-logs
Expand All @@ -135,14 +131,13 @@ jobs:
if: ${{ github.event.inputs.dryRun == 'false' }}
run: |
git push origin HEAD:release/${{ github.run_number }}

sync-repository:
name: Sync repositories
needs: release
runs-on: ubuntu-latest
steps:
- name: Checkout main branch
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
fetch-depth: 0
repository: ${{ github.repository }}
Expand All @@ -153,7 +148,6 @@ jobs:
if: ${{ github.event.inputs.dryRun == 'false' }}
run: |
git pull origin release/${{ github.run_number }}

- name: Push release commits to main and development branches
if: ${{ github.event.inputs.dryRun == 'false' }}
run: |
Expand Down
19 changes: 14 additions & 5 deletions .github/workflows/reusable-workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
pull_request:

jobs:
web-kit-pull-request:
name: Run Web Kit PR Workflow
uses: mParticle/mparticle-workflows/.github/workflows/web-kit-pull-request.yml@stable
pr-branch-check-name:
name: Check PR for semantic branch name
uses: mParticle/mparticle-workflows/.github/workflows/pr-branch-check-name.yml@stable
Expand All @@ -13,8 +16,14 @@ jobs:
pr-branch-target-gitflow:
name: Check PR for semantic target branch
uses: mParticle/mparticle-workflows/.github/workflows/pr-branch-target-gitflow.yml@stable
security-lint-checks:
name: Security Lint Checks
uses: mparticle/mparticle-workflows/.github/workflows/security-checks.yml@stable
with:
base_branch: 'development'
pr-notify:
if: github.event.pull_request.draft == false && (github.event.action == 'opened' || github.event.action == 'ready_for_review')
needs:
- web-kit-pull-request
name: Notify GChat
permissions:
id-token: write
contents: read
uses: ROKT/rokt-workflows/.github/workflows/oss_pr_opened_notification.yml@main
secrets:
gchat_webhook: ${{ secrets.GCHAT_PRS_WEBHOOK }}
14 changes: 0 additions & 14 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion release.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = {
branches: ['main'],
tagFormat: 'v${version}',
repositoryUrl: 'https://github.com/ROKT/mparticle-javascript-integration-roktpayplus',
repositoryUrl: 'https://github.com/mparticle-integrations/mparticle-javascript-integration-roktpayplus',
plugins: [
[
'@semantic-release/commit-analyzer',
Expand Down
Loading