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 b750fe9
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
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/
12 changes: 10 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,18 @@
"dist"
],
"scripts": {
"build": "npm run lint && npm run build:check && npm run build:js",
"build": "npm run lint && npm run build:check && npm run build:js && npm run build:pkg && npm run build:zip",
"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:pkg": "npm run build:pkg-linux-x64 && npm run build:pkg-darwin-x64 && npm run build:pkg-windows-x64",
"build:zip": "npm run build:zip-linux-x64 && npm run build:zip-darwin-x64 && npm run build:zip-windows-x64",
"build:zip-darwin-x64": "tar cvfz dist-native/ssin-darwin-x64.tar.gz dist-native/ssin-darwin-x64",
"build:zip-linux-x64": "tar cvfz dist-native/ssin-linux-x64.tar.gz dist-native/ssin-linux-x64",
"build:zip-windows-x64": "zip dist-native/ssin-windows-x64.zip dist-native/ssin-windows-x64.exe",
"build:pkg-darwin-x64": "bun build src/ssin-cli.ts --compile --target=bun-darwin-x64-modern --outfile dist-native/ssin-darwin-x64",
"build:pkg-linux-x64": "bun build src/ssin-cli.ts --compile --target=bun-linux-x64-modern --outfile dist-native/ssin-linux-x64",
"build:pkg-windows-x64": "bun build src/ssin-cli.ts --compile --target=bun-windows-x64-modern --outfile dist-native/ssin-windows-x64",
"clean": "rimraf dist dist-native node_modules",
"start": "bun ./src/ssin-cli.ts",
"test": "vitest",
"lint": "eslint"
Expand Down

0 comments on commit b750fe9

Please sign in to comment.