-
Notifications
You must be signed in to change notification settings - Fork 0
feat: expose additional AI SDK core exports #12
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 all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
4438424
feat: expose additional AI SDK core exports
kwakayama 3795868
fix: apply deno fmt formatting to AI SDK exports
kwakayama 8ad2902
docs: document AI SDK core function re-exports
kwakayama 1b56e0e
ci: add tag-based npm publish workflow
kwakayama a7a7885
docs: update release process with tag-based CI workflow
kwakayama 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
Some comments aren't visible on the classic Files Changed page.
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,67 @@ | ||
| name: Publish to npm | ||
|
|
||
| on: | ||
| push: | ||
| tags: | ||
| - 'v*' # Trigger on version tags like v0.0.67, v1.0.0 | ||
|
|
||
| jobs: | ||
| publish: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Clone repository | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Validate tag matches deno.json version | ||
| run: | | ||
| TAG_VERSION="${GITHUB_REF#refs/tags/v}" | ||
| DENO_VERSION=$(jq -r '.version' deno.json) | ||
|
|
||
| if [ "$TAG_VERSION" != "$DENO_VERSION" ]; then | ||
| echo "Error: Tag version ($TAG_VERSION) doesn't match deno.json version ($DENO_VERSION)" | ||
| echo "Please ensure deno.json version is updated before tagging." | ||
| exit 1 | ||
| fi | ||
|
|
||
| echo "Version validated: $TAG_VERSION" | ||
|
|
||
| - name: Setup Deno | ||
| uses: denoland/setup-deno@v2 | ||
| with: | ||
| deno-version: lts | ||
|
|
||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: '20' | ||
| registry-url: 'https://registry.npmjs.org' | ||
|
|
||
| - name: Build npm package | ||
| run: deno task build:npm | ||
|
|
||
| - name: Verify package version | ||
| working-directory: npm | ||
| run: | | ||
| PKG_VERSION=$(jq -r '.version' package.json) | ||
| TAG_VERSION="${GITHUB_REF#refs/tags/v}" | ||
|
|
||
| if [ "$PKG_VERSION" != "$TAG_VERSION" ]; then | ||
| echo "Error: Built package version ($PKG_VERSION) doesn't match tag ($TAG_VERSION)" | ||
| exit 1 | ||
| fi | ||
|
|
||
| echo "Package version verified: $PKG_VERSION" | ||
|
|
||
| - name: Publish to npm | ||
| working-directory: npm | ||
| run: npm publish --access public | ||
| env: | ||
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
|
||
| - name: Create GitHub Release | ||
| uses: softprops/action-gh-release@v1 | ||
| with: | ||
| generate_release_notes: true | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| { | ||
| "name": "veryfront", | ||
| "version": "0.0.66", | ||
| "version": "0.0.67", | ||
| "nodeModulesDir": "auto", | ||
| "exclude": [ | ||
| "npm/", | ||
|
|
||
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bumping the deno manifest to
0.0.67whilenpm/package.jsonstill declares0.0.66leaves the npm build advertising the old version; when running the release tasks (deno task build:npm/npm publish) the new AI exports cannot be published because npm will reject re-publishing 0.0.66, so npm consumers will miss the added exports until the npm version is bumped.Useful? React with 👍 / 👎.