Socket
Socket
Sign inDemoInstall

auri

Package Overview
Dependencies
51
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

6

CHANGELOG.md
# auri
## 1.0.1
### Patch changes
- Release legacy packages with custom tags
## 1.0.0
- Fix various bugs

18

dist/scripts/publish.js

@@ -11,3 +11,2 @@ import fs from "fs/promises";

}
console.log(packageMeta);
if (packageMeta.version.includes("-next.")) {

@@ -21,12 +20,15 @@ execute("npm install && npm run build && npm publish --access public --tag next");

}
else {
else if (branch === "main" || branch === "master") {
execute("npm install && npm run build && npm publish --access public");
const body = await getLatestChangelogBody();
if (branch === "main") {
await createRelease(packageMeta.repository, branch, packageMeta.version, {
body
});
}
else if (branch.startsWith("v")) {
const majorVersion = Number(branch.replace("v", ""));
if (!isNaN(majorVersion) && Math.trunc(majorVersion) === majorVersion) {
execute(`npm install && npm run build && npm publish --access public --tag v${majorVersion}-latest`);
const body = await getLatestChangelogBody();
await createRelease(packageMeta.repository, branch, packageMeta.version, {
body
});
}
else {
await createRelease(packageMeta.repository, branch, packageMeta.version, {
body,

@@ -33,0 +35,0 @@ latest: false

{
"name": "auri",
"version": "1.0.0",
"version": "1.0.1",
"description": "Organize package changes and releases",

@@ -5,0 +5,0 @@ "main": "/dist/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc