-
Notifications
You must be signed in to change notification settings - Fork 0
fix: scaffold .chronicle/ directory for Turbopack compatibility #21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 3 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
45e3f55
fix: resolve next binary via createRequire instead of hardcoded .bin …
rsbh c47312f
fix: resolve chronicle.yaml from cwd first, then content dir
rsbh e11f924
ci: add canary release workflow for PR builds
rsbh 0c91312
feat: scaffold .chronicle/ directory instead of running Next.js from …
rsbh 3274160
fix: move scaffolding to init, resolve next from cwd, detect package …
rsbh 7c32011
fix: use .npmrc file for npm auth in canary workflow
rsbh 995a127
fix: write .npmrc to home dir for bun publish auth
rsbh 3197f84
fix: revert canary publish to bun with NPM_CONFIG_TOKEN
rsbh ba8d278
debug: add npm whoami step to verify token
rsbh 4906345
fix: standalone tsconfig, openapi-types dep, content flag, update docs
rsbh f94fdd7
fix: resolve config from project root and fix .source import path
rsbh 6b53016
fix: merge missing scripts and deps into existing package.json on init
rsbh 5a2be79
chore: remove debug npm whoami step from canary workflow
rsbh 30bf0df
fix: set type module and add node_modules/.next to gitignore in init
rsbh 323385a
fix: render search highlights using dangerouslySetInnerHTML for mark …
rsbh 0807b01
chore: remove canary release workflow
rsbh 78e23ce
fix: address CodeRabbit PR review comments
rsbh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| name: canary | ||
|
|
||
| on: | ||
| pull_request: | ||
| types: [opened, synchronize] | ||
|
|
||
| jobs: | ||
| canary-release: | ||
| name: Publish canary to npm | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 10 | ||
| defaults: | ||
| run: | ||
| working-directory: ./packages/chronicle | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup Bun | ||
| uses: oven-sh/setup-bun@v2 | ||
|
|
||
| - name: Install dependencies | ||
| run: bun install --frozen-lockfile | ||
| working-directory: . | ||
|
|
||
| - name: Build CLI | ||
| run: bun build-cli.ts | ||
|
|
||
| - name: Set canary version | ||
| run: | | ||
| SHORT_SHA=$(echo "${{ github.event.pull_request.head.sha }}" | cut -c1-7) | ||
| VERSION=$(jq -r .version package.json)-canary.${SHORT_SHA} | ||
| jq --arg v "$VERSION" '.version = $v' package.json > package.tmp.json | ||
| mv package.tmp.json package.json | ||
| echo "Published version: $VERSION" | ||
|
|
||
| - name: Publish | ||
| run: bun publish --tag canary --access public | ||
|
rsbh marked this conversation as resolved.
Outdated
|
||
| env: | ||
| NPM_CONFIG_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.