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
13 changes: 12 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,20 @@ jobs:
- build-and-test
- create-release-branch
- confirm-public-repo-master-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 master branch
Expand All @@ -97,9 +104,13 @@ jobs:
uses: actions/setup-node@v4
with:
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'}}
Expand Down
Loading