Skip to content

CICDL-347: enable public npm publishing via trusted publishers#13

Merged
pipedrive-public-gha-bot[bot] merged 6 commits into
masterfrom
CICDL-347-public-publish
May 21, 2026
Merged

CICDL-347: enable public npm publishing via trusted publishers#13
pipedrive-public-gha-bot[bot] merged 6 commits into
masterfrom
CICDL-347-public-publish

Conversation

@Moser-ss
Copy link
Copy Markdown
Contributor

Summary

  • Add .github/workflows/publish.yml — caller workflow using reusable_cicd-npm-publish.yml with use_trusted_publisher: true (OIDC, no NPM token)
  • Add publishConfig.access: "public" to package.json
  • Add repository.json with type: "library" for org ruleset coverage
  • Update ci.yml: bump actions to v6, use .nvmrc for Node version

Prerequisites completed (outside this PR)

  • Package create-pipedrive-app@0.0.1 published on npmjs to claim name
  • Ownership transferred to pipedrive-inc org
  • Trusted Publisher configured on npmjs.org (workflow: publish.yml)
  • npm-version:patch/minor/major labels created on repo
  • Repo made public (InfoSec + license approved)

Test plan

  • Merge this PR to master
  • Open a follow-up test PR, apply npm-version:patch label
  • Verify publish workflow triggers and all 3 jobs pass (package-checks, package-test, package-publish)
  • Verify npm view create-pipedrive-app shows the new version
  • Verify npx create-pipedrive-app --help works from the public registry

🤖 Generated with Claude Code

Switches from token-based npm auth to OIDC trusted publishers,
adds publish workflow, and registers repo as a library for org ruleset.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 21, 2026 13:40
Copy link
Copy Markdown
Contributor

@dmitriyeff dmitriyeff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Enables public npm publishing for create-pipedrive-app using npm Trusted Publishers (OIDC-based publishing) and aligns CI to use the repo’s Node version configuration.

Changes:

  • Adds an npm publish workflow (publish.yml) that calls the org reusable npm publish workflow with use_trusted_publisher: true.
  • Sets publishConfig.access: "public" in package.json for public registry publishing.
  • Adds repository.json metadata and updates CI to use .nvmrc for Node version selection (and bumps action versions).

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
repository.json Adds repository metadata (type: "library") for org ruleset coverage.
package.json Adds publishConfig.access = "public" to support public npm publishing behavior.
.github/workflows/publish.yml Introduces a PR-label-triggered publish workflow using Trusted Publishers (OIDC).
.github/workflows/ci.yml Updates CI actions and switches Node version selection to .nvmrc.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/publish.yml Outdated
Comment on lines +4 to +8
types: [labeled]
branches: [master]
jobs:
npm-publish:
if: contains(github.event.label.name, 'npm-version')
Comment thread .github/workflows/publish.yml
Comment thread .github/workflows/publish.yml Outdated
Comment on lines +15 to +16
contents: read
secrets: inherit No newline at end of file
Comment thread .github/workflows/ci.yml
Comment on lines +13 to +14
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
Moser-ss and others added 3 commits May 21, 2026 14:47
…h label

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…d revision input

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…up which has its own tests

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
pipedrive-public-gha-bot Bot pushed a commit that referenced this pull request May 21, 2026
@pipedrive-public-gha-bot pipedrive-public-gha-bot Bot merged commit 321c8bc into master May 21, 2026
6 of 7 checks passed
@pipedrive-public-gha-bot pipedrive-public-gha-bot Bot deleted the CICDL-347-public-publish branch May 21, 2026 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants