1
0
mirror of https://github.com/SomboChea/ui synced 2026-01-16 08:05:44 +07:00

chore: restore circleci

This commit is contained in:
Juan Picado @jotadeveloper
2019-05-04 15:58:50 +02:00
parent 5e43ac0d49
commit c960fa76db
3 changed files with 182 additions and 4 deletions

13
scripts/gh_publish.sh Executable file
View File

@@ -0,0 +1,13 @@
#!/bin/bash
# Get the last tag from GitHub
lastTag=$(git describe --tags $(git rev-list --tags --max-count=1))
# Print it to the console for verification
echo "Bumping version to new tag: ${lastTag}"
# creating .npmrc
echo "//$REGISTRY_URL/:_authToken=$REGISTRY_AUTH_TOKEN" > .npmrc
# Publish to NPM
npm publish --registry https://$REGISTRY_URL/

View File

@@ -6,8 +6,5 @@ lastTag=$(git describe --tags $(git rev-list --tags --max-count=1))
# Print it to the console for verification
echo "Bumping version to new tag: ${lastTag}"
# creating .npmrc
echo "//$REGISTRY_URL/:_authToken=$REGISTRY_AUTH_TOKEN" > .npmrc
# Publish to NPM
npm publish --registry https://$REGISTRY_URL/
npm publish