Skip to content

Commit

Permalink
Add Automted release for @reach-sh/stdlib through reach-lang repository.
Browse files Browse the repository at this point in the history
  • Loading branch information
vinmazzi committed Nov 4, 2021
1 parent 15692ed commit 6b24160
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 51 deletions.
40 changes: 0 additions & 40 deletions .circleci/config.yml

This file was deleted.

12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ PACKAGE='@reach-sh/stdlib'
.PHONY: bump-version-and-publish
bump-version-and-publish:
sbin/check-recent-commits.sh
#npm version prerelease --preid=rc
#npm publish --access=public --tag=rc
#npm dist-tag add $(PACKAGE)"@$$(npm view $(PACKAGE)@rc version)" latest
# git push
# git push --tags
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
npm version prerelease --preid=rc
npm publish --access=public --tag=rc
git push
git push --tags

.PHONY: finalize-patch
finalize-patch:
npm version patch
npm publish --access=public --tag=stable
npm publish --access=restricted --tag=stable
npm dist-tag add $(PACKAGE)"@$$(npm view $(PACKAGE)@stable version)" latest
git push
git push --tags
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@reach-sh/stdlib",
"version": "0.1.6-rc.1",
"version": "0.1.6-rc.3",
"description": "Standard library for Reach Platform",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand Down
13 changes: 9 additions & 4 deletions sbin/refresh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ git diff --exit-code || (printf '\n\n\nGit repo is not clean; please commit firs

IMAGE=reachsh/stdlib:latest
HASH="$(docker run --entrypoint /bin/sh "$IMAGE" -c 'echo $REACH_GIT_HASH')"
if [ "$(echo "$HASH" | wc -c)" = " 9" ]; then
if [ "$(echo "$HASH" | wc -c)" = "9" ]; then
:
else
set +x
Expand All @@ -24,11 +24,11 @@ docker run --entrypoint /bin/sh --volume "$(pwd):/cwd" "$IMAGE" \
# -c 'cp /stdlib/*.mjs /stdlib/package.json /stdlib/*.d.ts /cwd/'


sudo chown $(whoami) -R ./*
# rm tester.mjs ETH-test.mjs
rm ./version.mo.d.ts ./version.mo.mjs

git diff package.json
git checkout -- package.json
#Print it's content

set +x
echo
Expand All @@ -39,4 +39,9 @@ echo
echo git add .
echo git commit -m "'refresh -> reach-sh/reach-lang@$HASH'"
echo '!!!!!!!!!!!!!!!!'
echo

git add .
git config user.name "circleci"
git config user.email "[email protected]"

git commit -m "'refresh -> reach-sh/reach-lang@$HASH'"

0 comments on commit 6b24160

Please sign in to comment.