Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix canary build #647

Merged
merged 17 commits into from
Mar 1, 2022
8 changes: 4 additions & 4 deletions .github/workflows/ci.canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -227,10 +227,10 @@ jobs:

- name: Publish to npm
run: |
tasks/npm-publish.sh packages/ethereum-contracts dev
tasks/npm-publish.sh packages/js-sdk dev
tasks/npm-publish.sh packages/sdk-core dev
tasks/npm-publish.sh packages/sdk-redux dev
tasks/npm-publish.sh packages/ethereum-contracts/ dev --verbose
tasks/npm-publish.sh packages/js-sdk/ dev --verbose
tasks/npm-publish.sh packages/sdk-core/ dev --verbose
tasks/npm-publish.sh packages/sdk-redux/ dev --verbose
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_TOKEN }}
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ package-lock.json

.vscode/
*-workspace
/.npmrc
**/*/.npmrc
6 changes: 4 additions & 2 deletions tasks/npm-publish.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#!/bin/bash -e
#!/bin/bash -xe

D="$(dirname "$0")"

pwd

PACKAGE_DIR="$1"
TAG="$2"
shift 2
Expand All @@ -12,4 +14,4 @@ npm publish --access public --tag ${TAG} ${PACKAGE_DIR} "$@"

echo "Publishing ${PACKAGE_DIR} @${TAG} to Github Packages"
$D/npmrc-use-github.sh > .npmrc
npm publish --tag ${TAG} ${PACKAGE_DIR} "$@"
npm publish --access public --tag ${TAG} ${PACKAGE_DIR} "$@"