2017-10-19 22:12:59 +02:00
|
|
|
#!/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}"
|
|
|
|
|
2019-04-17 07:17:39 +02:00
|
|
|
# creating .npmrc
|
|
|
|
echo "//$REGISTRY_URL/:_authToken=$REGISTRY_AUTH_TOKEN" > .npmrc
|
|
|
|
|
2017-10-19 22:12:59 +02:00
|
|
|
# Publish to NPM
|
2022-11-08 20:40:34 +01:00
|
|
|
npm publish --registry https://$REGISTRY_URL/
|