Skip to content

Commit

Permalink
chore: Publish executable versions
Browse files Browse the repository at this point in the history
Release-As: 0.0.9
  • Loading branch information
bn3t committed Oct 20, 2024
1 parent 0c65cf5 commit 08e25df
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ jobs:

- name: Install dependencies
run: npm ci

- uses: oven-sh/setup-bun@v2
- name: Build project
run: npm run build
- uses: oven-sh/setup-bun@v2
- name: Build native executables
run: npm run build:native-and-compress
9 changes: 9 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,15 @@ jobs:
- run: npm install npm@latest -g
- run: npm ci && npm run build
if: ${{ steps.release.outputs.release_created }}
- uses: oven-sh/setup-bun@v2
- name: Upload Executable Artifact
if: ${{ steps.release.outputs.release_created }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release upload ${{ steps.release.outputs.tag_name }} dist-native/ssin-darwin-x64.tar.gz
gh release upload ${{ steps.release.outputs.tag_name }} dist-native/ssin-linux-x64.tar.gz
gh release upload ${{ steps.release.outputs.tag_name }} dist-native/ssin-windows-x64.zip
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
node_modules/
dist/
dist-native/
.vscode/

coverage/
11 changes: 10 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,16 @@
"build": "npm run lint && npm run build:check && npm run build:js",
"build:check": "tsc --noEmit",
"build:js": "tsup-node --entry src/ssin-cli.ts --entry src/lib/index.ts --format cjs,esm --dts --sourcemap",
"clean": "rimraf dist node_modules",
"build:native": "npm run build:native-linux-x64 && npm run build:native-darwin-x64 && npm run build:native-windows-x64",
"build:compress": "npm run build:compress-linux-x64 && npm run build:compress-darwin-x64 && npm run build:compress-windows-x64",
"build:compress-darwin-x64": "tar cvfz dist-native/ssin-darwin-x64.tar.gz dist-native/ssin-darwin-x64",
"build:compress-linux-x64": "tar cvfz dist-native/ssin-linux-x64.tar.gz dist-native/ssin-linux-x64",
"build:compress-windows-x64": "zip dist-native/ssin-windows-x64.zip dist-native/ssin-windows-x64.exe",
"build:native-darwin-x64": "bun build src/ssin-cli.ts --compile --target=bun-darwin-x64-modern --outfile dist-native/ssin-darwin-x64",
"build:native-linux-x64": "bun build src/ssin-cli.ts --compile --target=bun-linux-x64-modern --outfile dist-native/ssin-linux-x64",
"build:native-windows-x64": "bun build src/ssin-cli.ts --compile --target=bun-windows-x64-modern --outfile dist-native/ssin-windows-x64",
"build:native-and-compress": "npm run build:native && npm run build:compress",
"clean": "rimraf dist dist-native node_modules",
"start": "bun ./src/ssin-cli.ts",
"test": "vitest",
"lint": "eslint"
Expand Down

0 comments on commit 08e25df

Please sign in to comment.