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
33 changes: 22 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,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 @@ -37,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 @@ -51,7 +51,7 @@ jobs:
- confirm-public-repo-main-branch
steps:
- name: Checkout development branch
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
repository: mparticle-integrations/mparticle-javascript-integration-rokt
ref: development
Expand All @@ -67,17 +67,24 @@ jobs:
- build-and-test
- create-release-branch
- confirm-public-repo-main-branch

# OIDC permissions for npm trusted publishing
permissions:
contents: write
issues: write
pull-requests: write
id-token: write # Required for OIDC authentication with npm

env:
GITHUB_TOKEN: ${{ secrets.MP_INTEGRATIONS_SEMANTIC_RELEASE_BOT }}
GIT_AUTHOR_NAME: mparticle-automation
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 @@ -94,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 @@ -110,7 +121,7 @@ jobs:
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 @@ -126,7 +137,7 @@ jobs:
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 Down
Loading
Loading