@audius/sdk 0.0.25 → 0.0.26

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.
package/dist/index.cjs.js CHANGED
@@ -50874,9 +50874,9 @@ var require$$0$1 = /*@__PURE__*/getAugmentedNamespace(sdk$1);
50874
50874
  var libs$1 = createModule("/$$rollup_base$$/src");
50875
50875
 
50876
50876
  var name = "@audius/sdk";
50877
- var version = "0.0.25";
50877
+ var version = "0.0.26";
50878
50878
  var audius = {
50879
- releaseSHA: "d754d6ba6db6d33eb43ae473147944c4e579b6b2"
50879
+ releaseSHA: "71cfcfbd6222ead7e34bc619b6b1646f4320d6b2"
50880
50880
  };
50881
50881
  var description = "";
50882
50882
  var main = "dist/index.cjs.js";
package/dist/index.esm.js CHANGED
@@ -50828,9 +50828,9 @@ var require$$0$1 = /*@__PURE__*/getAugmentedNamespace(sdk$1);
50828
50828
  var libs$1 = createModule("/$$rollup_base$$/src");
50829
50829
 
50830
50830
  var name = "@audius/sdk";
50831
- var version = "0.0.25";
50831
+ var version = "0.0.26";
50832
50832
  var audius = {
50833
- releaseSHA: "d754d6ba6db6d33eb43ae473147944c4e579b6b2"
50833
+ releaseSHA: "71cfcfbd6222ead7e34bc619b6b1646f4320d6b2"
50834
50834
  };
50835
50835
  var description = "";
50836
50836
  var main = "dist/index.cjs.js";
package/dist/legacy.js CHANGED
@@ -50874,9 +50874,9 @@ var require$$0$1 = /*@__PURE__*/getAugmentedNamespace(sdk$1);
50874
50874
  var libs$1 = createModule("/$$rollup_base$$/src");
50875
50875
 
50876
50876
  var name = "@audius/sdk";
50877
- var version = "0.0.25";
50877
+ var version = "0.0.26";
50878
50878
  var audius = {
50879
- releaseSHA: "d754d6ba6db6d33eb43ae473147944c4e579b6b2"
50879
+ releaseSHA: "71cfcfbd6222ead7e34bc619b6b1646f4320d6b2"
50880
50880
  };
50881
50881
  var description = "";
50882
50882
  var main = "dist/index.cjs.js";
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@audius/sdk",
3
- "version": "0.0.25",
3
+ "version": "0.0.26",
4
4
  "audius": {
5
- "releaseSHA": "d754d6ba6db6d33eb43ae473147944c4e579b6b2"
5
+ "releaseSHA": "71cfcfbd6222ead7e34bc619b6b1646f4320d6b2"
6
6
  },
7
7
  "description": "",
8
8
  "main": "dist/index.cjs.js",
@@ -73,30 +73,40 @@ function bump-npm () {
73
73
  # Publishing dry run, prior to pushing a branch
74
74
  npm publish . --access public --dry-run
75
75
 
76
- # Commit to a new branch, and tag
76
+ # Commit to a new branch
77
77
  git checkout -b ${STUB}-${VERSION}
78
78
  git add .
79
79
  git commit -m "$(commit-message)"
80
- git tag -a @audius/${STUB}@${VERSION} -m "$(commit-message)"
81
80
 
82
- # Push branch and tags to remote
81
+ # Push branch to remote
83
82
  git push -u origin ${STUB}-${VERSION}
84
- git push origin --tags
85
83
  }
86
84
 
87
85
  # Merge the created branch into master, then delete the branch
88
86
  function merge-bump () {
89
- git checkout master -f
87
+ (
88
+ # exit the function/subshell early on error
89
+ # https://stackoverflow.com/a/58964551
90
+ # http://mywiki.wooledge.org/BashFAQ/105
91
+ set -e
90
92
 
91
- # pull in any additional commits that may have trickled in
92
- git pull
93
+ git checkout master -f
94
+
95
+ # pull in any additional commits that may have trickled in
96
+ git pull
93
97
 
94
- git merge ${STUB}-${VERSION} -m "$(commit-message)"
98
+ # squash branch commit
99
+ git merge --squash ${STUB}-${VERSION} || exit 1
100
+ git commit -m "$(commit-message)" || exit 1
95
101
 
96
- # if pushing fails, ensure we cleanup()
97
- git push -u origin master \
98
- && git push origin :${STUB}-${VERSION} \
99
- || $(exit 1)
102
+ # tag release
103
+ git tag -a @audius/${STUB}@${VERSION} -m "$(commit-message)" || exit 1
104
+ git push origin --tags || exit 1
105
+
106
+ # if pushing fails, ensure we cleanup()
107
+ git push -u origin master || exit 1
108
+ git push origin :${STUB}-${VERSION}
109
+ )
100
110
  }
101
111
 
102
112
  # publish to npm
@@ -104,6 +114,14 @@ function publish () {
104
114
  npm publish . --access public
105
115
  }
106
116
 
117
+ # informative links
118
+ function info () {
119
+ echo "Released to:
120
+ * https://github.com/AudiusProject/audius-protocol/commits/master
121
+ * https://github.com/AudiusProject/audius-protocol/tags
122
+ * https://www.npmjs.com/package/@audius/sdk?activeTab=versions"
123
+ }
124
+
107
125
  # cleanup when merging step fails
108
126
  function cleanup () {
109
127
  git push origin :${STUB}-${VERSION} || true
@@ -117,4 +135,4 @@ cd ${PROTOCOL_DIR}/libs
117
135
 
118
136
  # perform release
119
137
  bump-npm
120
- merge-bump && publish || cleanup
138
+ merge-bump && publish && info || cleanup