Publish @next

This commit is contained in:
Rob Moran
2019-06-03 17:32:51 +02:00
parent 4e6eec1af9
commit 784f8230b0

View File

@@ -19,6 +19,9 @@ jobs:
steps:
- attach_workspace:
at: ../
- run: 'echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc'
- run: npm --no-git-tag-version version prerelease --preid=next.$(echo $CIRCLE_SHA1 | cut -c -7)
- run: npm publish --tag next
- run: mkdir ~/.ssh/ && echo -e "Host github.com\n\tStrictHostKeyChecking no\n" > ~/.ssh/config
- run: git config --global user.name thegecko
- run: git config --global user.email github@thegecko.org
@@ -29,8 +32,6 @@ jobs:
- run: git checkout stash -- .
- run: git commit --allow-empty --message "Automatic Deployment [skip ci]"
- run: git push
- run: 'echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc'
- run: npm publish || true
workflows:
version: 2