-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from jigsawye/feat/1.0.0
- Loading branch information
Showing
17 changed files
with
952 additions
and
118 deletions.
There are no files selected for viewing
This file contains 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,8 @@ | ||
# Changesets | ||
|
||
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works | ||
with multi-package repos, or single-package repos to help you version and publish your code. You can | ||
find the full documentation for it [in our repository](https://github.com/changesets/changesets) | ||
|
||
We have a quick list of common questions to get you started engaging with this project in | ||
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md) |
This file contains 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,11 @@ | ||
{ | ||
"$schema": "https://unpkg.com/@changesets/config@3.0.3/schema.json", | ||
"changelog": "@changesets/cli/changelog", | ||
"commit": false, | ||
"fixed": [], | ||
"linked": [], | ||
"access": "public", | ||
"baseBranch": "main", | ||
"updateInternalDependencies": "patch", | ||
"ignore": [] | ||
} |
This file contains 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,10 @@ | ||
--- | ||
'@swagit/darwin-arm64': major | ||
'@swagit/linux-arm64': major | ||
'@swagit/darwin-x64': major | ||
'@swagit/linux-x64': major | ||
'@swagit/win32-x64': major | ||
'swagit': major | ||
--- | ||
|
||
Rewrite in Rust |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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,73 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
release: | ||
strategy: | ||
matrix: | ||
include: | ||
- os: macos-latest | ||
target: aarch64-apple-darwin | ||
name: darwin-arm64 | ||
- os: macos-latest | ||
target: x86_64-apple-darwin | ||
name: darwin-x64 | ||
- os: ubuntu-latest | ||
target: x86_64-unknown-linux-gnu | ||
name: linux-x64 | ||
- os: ubuntu-latest | ||
target: aarch64-unknown-linux-gnu | ||
name: linux-arm64 | ||
- os: windows-latest | ||
target: x86_64-pc-windows-msvc | ||
name: win32-x64 | ||
|
||
name: Release ${{ matrix.name }} | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install Rust | ||
uses: dtolnay/rust-toolchain@stable | ||
with: | ||
targets: ${{ matrix.target }} | ||
|
||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v4.0.0 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 22.x | ||
cache: pnpm | ||
|
||
- name: Install Dependencies | ||
run: pnpm install | ||
|
||
- name: Build binary | ||
run: cargo build --release --target ${{ matrix.target }} | ||
|
||
- name: Prepare package | ||
shell: bash | ||
run: | | ||
mkdir -p npm/@swagit/${{ matrix.name }}/bin | ||
if [ "${{ matrix.name }}" = "win32-x64" ]; then | ||
cp target/${{ matrix.target }}/release/swagit.exe npm/@swagit/${{ matrix.name }}/bin/ | ||
else | ||
cp target/${{ matrix.target }}/release/swagit npm/@swagit/${{ matrix.name }}/bin/ | ||
fi | ||
- name: Create Release Pull Request or Publish to npm | ||
id: changesets | ||
uses: changesets/action@v1 | ||
with: | ||
publish: pnpm release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |
This file contains 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 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,21 @@ | ||
{ | ||
"name": "swagit", | ||
"version": "0.0.0", | ||
"private": true, | ||
"description": "A swag tool to use git with interactive cli", | ||
"author": "Evan Ye <jigsaw.ye@gmail.com>", | ||
"license": "MIT", | ||
"bin": { | ||
"sg": "bin/swagit.js", | ||
"swagit": "bin/swagit.js" | ||
}, | ||
"packageManager": "pnpm@9.12.3", | ||
"devDependencies": { | ||
"@changesets/cli": "^2.27.9" | ||
}, | ||
"scripts": { | ||
"changeset": "changeset", | ||
"version": "changeset version", | ||
"release": "changeset publish" | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.