Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
chore: update release-edge script
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Jul 29, 2021
1 parent 858e31c commit ee8eaef
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/release-edge.sh
Original file line number Diff line number Diff line change
@@ -1,26 +1,29 @@
#!/bin/bash

set -xe

# Restore all git changes
git restore -s@ -SW -- packages examples

# Bump versions to edge
yarn jiti ./scripts/bump-edge

# Resolve yarn
yarn
YARN_ENABLE_IMMUTABLE_INSTALLS=false yarn install

# Update token
if [[ ! -z ${NODE_AUTH_TOKEN} ]] ; then
echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" >> ~/.npmrc
echo "registry=https://registry.npmjs.org/" >> ~/.npmrc
echo "always-auth=true" >> ~/.npmrc
echo "npmAuthToken: ${NODE_AUTH_TOKEN}" >> ~/.yarnrc.yml
npm whoami
fi

# Release packages
for p in packages/* ; do
pushd $p
echo "Publishing $p"
npm publish -q --access public # --dry-run
yarn npm publish --access public --tolerate-republish
popd
done

0 comments on commit ee8eaef

Please sign in to comment.