Skip to content

Commit

Permalink
Update publish CLI and workflow for single app
Browse files Browse the repository at this point in the history
  • Loading branch information
alec-chernicki committed Jul 11, 2024
1 parent d7bcb32 commit 3a4ce78
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/package-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ jobs:
- name: Build
run: pnpm build

- run: pnpx pkg-pr-new publish --pnpm './apps/commonality' './apps/studio'
- run: pnpx pkg-pr-new publish --pnpm './apps/commonality'
12 changes: 10 additions & 2 deletions apps/commonality/src/cli/commands/publish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,16 @@ export const publish = command
'The API URL to publish to',
process.env.COMMONALITY_API_URL ?? 'http://app.commonality.co/api/publish',
)
.requiredOption('--project <projectId>', 'The project ID to publish to')
.requiredOption('--key <publishKey>', 'The publish key to publish with')
.requiredOption(
'--project <projectId>',
'The project ID to publish to',
process.env.COMMONALITY_PROJECT_ID,
)
.requiredOption(
'--key <publishKey>',
'The publish key to publish with',
process.env.COMMONALITY_PUBLISH_KEY,
)
.action(async (options) => {
publishSpinner.start('Publishing snapshot...');

Expand Down

0 comments on commit 3a4ce78

Please sign in to comment.