@alwaysai/device-agent-schemas 3.1.2 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1) hide show
  1. package/package.json +3 -3
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@alwaysai/device-agent-schemas",
3
3
  "description": "alwaysAI schemas",
4
- "version": "3.1.2",
4
+ "version": "3.2.0",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
7
7
  "files": [
@@ -26,8 +26,8 @@
26
26
  "test:watch": "npm run test:unit -- --watch",
27
27
  "preversion": "npm test",
28
28
  "postversion": "npm publish",
29
- "publish:major": "git push && git tag -f major && git push -f origin major && git tag -d major",
30
- "publish:minor": "git push && git tag -f minor && git push -f origin minor && git tag -d minor",
29
+ "publish:major": "[ \"$(git rev-parse --abbrev-ref HEAD)\" = \"main\" ] && git pull && git push && git tag -f major && git push -f origin major && git tag -d major || echo \"Error: Not on main branch\"",
30
+ "publish:minor": "[ \"$(git rev-parse --abbrev-ref HEAD)\" = \"main\" ] && git pull && git push && git tag -f minor && git push -f origin minor && git tag -d minor || echo \"Error: Not on main branch\"",
31
31
  "publish:patch": "[ \"$(git rev-parse --abbrev-ref HEAD)\" = \"main\" ] && git pull && git push && git tag -f patch && git push -f origin patch && git tag -d patch || echo \"Error: Not on main branch\""
32
32
  },
33
33
  "dependencies": {