Skip to content

Commit

Permalink
Publish root cli and cleanup old stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
gschier committed Sep 9, 2024
1 parent aac631d commit 2551aca
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 129 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,7 @@ jobs:
- run: npm publish --provenance --access public
working-directory: npm/cli-win32-x64
env: { NODE_AUTH_TOKEN: "${{ secrets.NPM_TOKEN }}" }

- run: npm publish --provenance --access public
working-directory: npm/cli
env: { NODE_AUTH_TOKEN: "${{ secrets.NPM_TOKEN }}" }
5 changes: 4 additions & 1 deletion npm/cli/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@ const BINARY_DISTRIBUTION_PACKAGES = {
win32_x64: "@yaakapp/cli-win32-x64",
};

module.exports = {BINARY_DISTRIBUTION_PACKAGES};
// Adjust the version you want to install. You can also make this dynamic.
const BINARY_DISTRIBUTION_VERSION = require('./package.json').version;

module.exports = {BINARY_DISTRIBUTION_PACKAGES, BINARY_DISTRIBUTION_VERSION};
5 changes: 1 addition & 4 deletions npm/cli/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@ const fs = require("fs");
const path = require("path");
const zlib = require("zlib");
const https = require("https");
const {BINARY_DISTRIBUTION_PACKAGES} = require("./common");

// Adjust the version you want to install. You can also make this dynamic.
const BINARY_DISTRIBUTION_VERSION = require('./package.json').version;
const {BINARY_DISTRIBUTION_PACKAGES, BINARY_DISTRIBUTION_VERSION} = require("./common");

// Windows binaries end with .exe so we need to special case them.
const binaryName = process.platform === "win32" ? "yaakcli.exe" : "yaakcli";
Expand Down
114 changes: 0 additions & 114 deletions scripts/install.js

This file was deleted.

Empty file removed scripts/uninstall.js
Empty file.
10 changes: 0 additions & 10 deletions scripts/util.js

This file was deleted.

0 comments on commit 2551aca

Please sign in to comment.