File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Publish Package
22
33on :
4- # push:
5- # tags:
6- # - 'v*'
4+ push :
5+ tags :
6+ - ' v*'
77
88permissions :
99 id-token : write # Required for OIDC publishing
1818 with :
1919 node-version : " 24"
2020 registry-url : " https://registry.npmjs.org"
21+ - name : Set version from tag
22+ run : |
23+ VERSION=${GITHUB_REF#refs/tags/v}
24+ npm pkg set version="$VERSION"
25+ npm pkg set private=false --json
26+ - run : npm ci
27+ - run : npm run build
28+ - name : Verify startup
29+ run : node dist/index.js --help
30+ - run : npm publish --provenance
Original file line number Diff line number Diff line change @@ -235,3 +235,9 @@ pnpm run build
235235# Run locally
236236DOPPLER_TOKEN=dp.xxx pnpm start
237237```
238+
239+ ## Branch and Release Flow
240+
241+ New work should branch from main and target main in PRs.
242+
243+ To release, push a tag in the format ` vX.X.X ` following semantic versioning. This triggers the publish workflow which builds and publishes to NPM.
Original file line number Diff line number Diff line change 66 "main" : " dist/index.js" ,
77 "type" : " module" ,
88 "bin" : {
9- "doppler-mcp" : " ./ bin/doppler-mcp"
9+ "doppler-mcp" : " bin/doppler-mcp"
1010 },
1111 "scripts" : {
1212 "fetch-openapi" : " curl -s https://docs.doppler.com/openapi/core.json -o doppler-openapi.json" ,
1515 "dev" : " tsx --esm src/index.ts" ,
1616 "start" : " node dist/index.js" ,
1717 "test" : " vitest run" ,
18- "test:watch" : " vitest" ,
19- "prepublishOnly" : " npm run build"
18+ "test:watch" : " vitest"
2019 },
2120 "files" : [
2221 " dist/" ,
You can’t perform that action at this time.
0 commit comments