MCPcopy Create free account
hub / github.com/dmno-dev/bumpy / printAppWorkflowSnippet

Function printAppWorkflowSnippet

packages/bumpy/src/commands/ci-setup.ts:238–258  ·  view source on GitHub ↗
(pm: PackageManager)

Source from the content-addressed store, hash-verified

236}
237
238function printAppWorkflowSnippet(pm: PackageManager): void {
239 const runCmd = pmxCommand(pm);
240 p.note(
241 [
242 'In your release workflow, generate a token and pass it to bumpy:',
243 '',
244 pc.dim('# .github/workflows/release.yaml'),
245 pc.green('- uses: actions/create-github-app-token@v2'),
246 pc.green(' id: app-token'),
247 pc.green(' with:'),
248 pc.green(' app-id: ${{ secrets.BUMPY_APP_ID }}'),
249 pc.green(' private-key: ${{ secrets.BUMPY_APP_PRIVATE_KEY }}'),
250 '',
251 pc.dim(`- run: ${runCmd} ci release`),
252 pc.dim(' env:'),
253 pc.dim(' GH_TOKEN: ${{ github.token }}'),
254 pc.green(' BUMPY_GH_TOKEN: ${{ steps.app-token.outputs.token }}'),
255 ].join('\n'),
256 'Update your workflow',
257 );
258}
259
260/** Package-manager-appropriate command for running bumpy in CI workflows */
261function pmxCommand(pm: PackageManager): string {

Callers 1

setupAppFunction · 0.85

Calls 1

pmxCommandFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…