-
-
Notifications
You must be signed in to change notification settings - Fork 1
add bun support #62
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
add bun support #62
Changes from 16 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
76c7210
add bun support [WIP]
gameroman 8217dad
Update
gameroman 09d2f67
Merge branch 'e18e:main' into bun-templates
gameroman 4fdeecf
Merge branch 'e18e:main' into bun-templates
gameroman db410f7
Merge branch 'e18e:main' into bun-templates
gameroman 5bc6998
update
gameroman 2f520f5
update
gameroman de96391
update
gameroman 239a90e
update test
gameroman bc42533
fix
gameroman f8b1939
fix
gameroman d53d12b
fix
gameroman 93ed360
types
gameroman 6422258
fix: replace with sha
gameroman 4d9178a
fix
gameroman ee25548
Merge branch 'e18e:main' into bun-templates
gameroman 7e4aeec
fix initialValue
gameroman 26255b6
wip
gameroman 1ba2020
fix
gameroman 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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,4 +3,5 @@ export interface CLIOptions { | |
| env: string | undefined; | ||
| interactive: boolean; | ||
| template: string; | ||
| pm?: string; | ||
| } | ||
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,51 @@ | ||
| name: Publish to npm | ||
| permissions: {} | ||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| jobs: | ||
| test: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: read | ||
| steps: | ||
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | ||
| with: | ||
| persist-credentials: false | ||
| - name: Setup Bun | ||
| uses: oven-sh/setup-bun@b7a1c7ccf290d58743029c4f6903da283811b979 # v2.1.0 | ||
| with: | ||
| bun-version: latest | ||
| - name: Install dependencies | ||
| run: bun install --frozen-lockfile --ignore-scripts | ||
| - name: Run tests | ||
| run: bun test | ||
| publish: | ||
| needs: | ||
| - test | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: read | ||
| pull-requests: write | ||
| id-token: write | ||
| outputs: | ||
| tarball: ${{ steps.pack.outputs.tarball }} | ||
gameroman marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| steps: | ||
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | ||
| with: | ||
| persist-credentials: false | ||
| - name: Setup Bun | ||
| uses: oven-sh/setup-bun@b7a1c7ccf290d58743029c4f6903da283811b979 # v2.1.0 | ||
| with: | ||
| bun-version: latest | ||
| - name: Install dependencies | ||
| run: bun install --frozen-lockfile --ignore-scripts | ||
| - run: bun run build | ||
| - name: Create Release or Publish | ||
| uses: changesets/action@e0145edc7d9d8679003495b11f87bd8ef63c0cba # v1.5.3 | ||
| with: | ||
| publish: bunx changeset publish | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| NPM_TOKEN: "" # Workaround. See https://github.com/changesets/changesets/issues/1152#issuecomment-3190884868 | ||
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 |
|---|---|---|
| @@ -0,0 +1,76 @@ | ||
| name: Publish to npm | ||
| permissions: {} | ||
| on: | ||
| release: | ||
| types: | ||
| - published | ||
| jobs: | ||
| test: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: read | ||
| steps: | ||
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | ||
| with: | ||
| persist-credentials: false | ||
| - name: Setup Bun | ||
| uses: oven-sh/setup-bun@b7a1c7ccf290d58743029c4f6903da283811b979 # v2.1.0 | ||
| with: | ||
| bun-version: latest | ||
| - name: Install dependencies | ||
| run: bun install --frozen-lockfile --ignore-scripts | ||
| - name: Run tests | ||
| run: bun test | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: read | ||
| outputs: | ||
| tarball: ${{ steps.pack.outputs.tarball }} | ||
| steps: | ||
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | ||
| with: | ||
| persist-credentials: false | ||
| - name: Setup Bun | ||
| uses: oven-sh/setup-bun@b7a1c7ccf290d58743029c4f6903da283811b979 # v2.1.0 | ||
| with: | ||
| bun-version: latest | ||
| - name: Install dependencies | ||
| run: bun install --frozen-lockfile --ignore-scripts | ||
| - run: bun run build | ||
| - run: bun pm version $TAG_NAME --git-tag-version=false | ||
| env: | ||
| TAG_NAME: ${{ github.ref_name }} | ||
| - id: pack | ||
| run: |- | ||
| TARBALL=$(bun pm pack) | ||
| echo "tarball=$TARBALL" >> $GITHUB_OUTPUT | ||
| - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 | ||
| with: | ||
| name: tarball | ||
| path: ${{ steps.pack.outputs.tarball }} | ||
| publish: | ||
| needs: | ||
| - test | ||
| - build | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| id-token: write | ||
| env: | ||
| TARBALL: ${{ needs.build.outputs.tarball }} | ||
| steps: | ||
| - uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0 | ||
| with: | ||
| name: tarball | ||
| - name: Setup Bun | ||
| uses: oven-sh/setup-bun@b7a1c7ccf290d58743029c4f6903da283811b979 # v2.1.0 | ||
| with: | ||
| bun-version: latest | ||
| - run: bun publish --provenance --access public --tag next $TARBALL | ||
| if: github.event.release.prerelease | ||
| env: | ||
| TARBALL: ${{ needs.build.outputs.tarball }} | ||
| - run: bun publish --provenance --access public $TARBALL | ||
| if: "!github.event.release.prerelease" | ||
| env: | ||
| TARBALL: ${{ needs.build.outputs.tarball }} |
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.
Uh oh!
There was an error while loading. Please reload this page.