@momo-kits/foundation 0.75.5-beta.0 → 0.75.7-beta.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 (2) hide show
  1. package/package.json +1 -1
  2. package/publish.sh +16 -17
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/foundation",
3
- "version": "0.75.5-beta.0",
3
+ "version": "0.75.7-beta.0",
4
4
  "description": "React Native Component Kits",
5
5
  "main": "index.ts",
6
6
  "scripts": {},
package/publish.sh CHANGED
@@ -1,23 +1,22 @@
1
1
  #!/bin/bash
2
+
3
+ # Prepare dist files
2
4
  rm -rf dist
3
5
  mkdir dist
4
-
5
- cp . ./dist
6
-
7
-
8
- # GET VERSION from mck_package.json
9
- VERSIONSTRING=( v$(jq .version package.json) )
10
- VERSION=(${VERSIONSTRING//[\"]/})
11
- echo VERSION: $VERSION
12
-
13
- rsync -r --verbose --exclude '*.mdx' --exclude '*Demo.js' --exclude 'props-type.js' --exclude 'prop-types.js' ./* dist
14
-
6
+ rsync -r --exclude=/dist ./* dist
15
7
  cd dist
16
- npm publish --tag latest --access=public
17
-
18
- #clear dist and package json
8
+ RANDOM_VAR="package"
9
+
10
+ if [ "$1" == "beta" ]; then # Publish beta
11
+ npm version $(npm view @momo-kits/foundation@beta version)
12
+ npm version prepatch --preid=beta
13
+ npm publish --tag beta --access=public
14
+ else # Publish latest
15
+ npm version $(npm view @momo-kits/foundation version)
16
+ npm version patch
17
+ npm publish --tag latest --access=public
18
+ fi
19
+
20
+ # Clean up
19
21
  cd ..
20
22
  rm -rf dist
21
-
22
-
23
- #curl -X POST -H 'Content-Type: application/json' 'https://chat.googleapis.com/v1/spaces/AAAAbP8987c/messages?key=AIzaSyDdI0hCZtE6vySjMm-WEfRq3CPzqKqqsHI&token=UGSFRvk_oYb9uGsAgs31bVvMm6jDkmD8zihGm3eyaQA%3D&threadKey=JoaXTEYaNNkl' -d '{"text": "@momo-kits/core new version release: '*"$VERSION"*' https://www.npmjs.com/package/@momo-kits/foundation"}'