Skip to content

Commit 01e1179

Browse files
Moser-ssclaude
andcommitted
CICDL-347: enable public npm publishing via trusted publishers (OIDC)
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>
1 parent 1dd5908 commit 01e1179

4 files changed

Lines changed: 29 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ jobs:
1010
ci:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v4
14-
- uses: actions/setup-node@v4
13+
- uses: actions/checkout@v6
14+
- uses: actions/setup-node@v6
1515
with:
16-
node-version: 20
16+
node-version-file: .nvmrc
1717
cache: npm
1818
- run: npm ci
1919
- run: npm run lint

.github/workflows/publish.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: NPM Publish
2+
on:
3+
pull_request:
4+
types: [labeled]
5+
branches: [master]
6+
jobs:
7+
npm-publish:
8+
if: contains(github.event.label.name, 'npm-version')
9+
uses: pipedrive-actions/github-actions-workflows/.github/workflows/reusable_cicd-npm-publish.yml@master
10+
with:
11+
skip_functional_tests: true
12+
use_trusted_publisher: true
13+
permissions:
14+
id-token: write
15+
contents: read
16+
secrets: inherit

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,8 @@
3838
"typescript": "^5.4.0",
3939
"typescript-eslint": "^8.0.0",
4040
"vitest": "^1.6.0"
41+
},
42+
"publishConfig": {
43+
"access": "public"
4144
}
4245
}

repository.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "create-pipedrive-app",
3+
"description": "Scaffold a production-ready Pipedrive Marketplace app",
4+
"owner": "Gravity",
5+
"type": "library",
6+
"status": "released"
7+
}

0 commit comments

Comments
 (0)