Skip to content
This repository was archived by the owner on Apr 18, 2024. It is now read-only.

Commit c10e993

Browse files
Release 1.4 (#366)
* Bump version * Rollback version * Update publish script * 1.4.0 * Update readme
1 parent 486d53d commit c10e993

File tree

5 files changed

+18
-8
lines changed

5 files changed

+18
-8
lines changed

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
//npm.pkg.github.com/:_authToken=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

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Frontend, as its name suggests, is the frontend library developed using React an
1313
## Install
1414

1515
```bash
16-
npm install label-studio
16+
npm install @heartexlabs/label-studio
1717
```
1818

1919
## Usage
@@ -29,13 +29,13 @@ import 'label-studio/build/static/css/main.css';
2929

3030
```xhtml
3131
<!-- Include Label Studio stylesheet -->
32-
<link href="https://unpkg.com/label-studio@1.0.1/build/static/css/main.css" rel="stylesheet">
32+
<link href="https://unpkg.com/label-studio@1.4.0/build/static/css/main.css" rel="stylesheet">
3333

3434
<!-- Create the Label Studio container -->
3535
<div id="label-studio"></div>
3636

3737
<!-- Include the Label Studio library -->
38-
<script src="https://unpkg.com/label-studio@1.0.1/build/static/js/main.js"></script>
38+
<script src="https://unpkg.com/label-studio@1.4.0/build/static/js/main.js"></script>
3939
```
4040

4141
**Initialization**

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "label-studio",
3-
"version": "1.0.1",
2+
"name": "@heartexlabs/label-studio",
3+
"version": "1.4.0",
44
"description": "Data Labeling Tool that is backend agnostic and can be embedded into your applications",
55
"homepage": "https://labelstud.io",
66
"author": {

scripts/publish.sh

+11-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ GREEN='\033[0;32m'
1616
NC='\033[0m' # No Color
1717

1818
# Just to be sure
19-
git checkout master
2019
git pull
2120

2221
# Create new build
@@ -43,19 +42,29 @@ echo && echo -e "${GREEN}### README and package.json modified successfully${NC}"
4342
git commit -m "$VERSION"
4443
git tag v$VERSION
4544

46-
git push origin master
45+
git push
4746
git push origin v$VERSION
4847

4948
echo && echo -e "${GREEN}### Release commit and tag pushed to github${NC}" && echo
5049

5150
# Remove prepublish step because we are using custom script
5251
sed -E -e "s/^ *\"prepublishOnly\".*$//" -i '' package.json
52+
53+
# Authenticate within npmjs.com using Access Token from NPMJS_TOKEN
54+
echo "//registry.npmjs.org/:_authToken=${NPMJS_TOKEN}" > ".npmrc"
55+
56+
# Publish the package
5357
npm publish
5458

5559
echo && echo -e "${GREEN}### NPM package published${NC}" && echo
5660

5761
# GitHub Packages requires scoped @company/repo name
5862
sed -E -e "s/^ \"name\".*$/ \"name\": \"@$COMPANY\/$REPO\",/" -i '' package.json
63+
64+
# Authenticate within Github Packages using Personal Access Token
65+
echo "//npm.pkg.github.com/:_authToken=${GITHUB_PACKAGES_TOKEN}" > ".npmrc"
66+
67+
# Publish the package
5968
npm publish --registry=https://npm.pkg.github.com/
6069

6170
echo && echo -e "${GREEN}### GitHub package published${NC}" && echo

0 commit comments

Comments
 (0)