ci: allow specifying tag for edge releases

This commit is contained in:
Daniel Roe 2023-05-15 22:43:12 +01:00
parent f88c1e6452
commit 5fdb6a6d66
2 changed files with 4 additions and 1 deletions

View File

@ -46,3 +46,4 @@ jobs:
env: env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
NPM_CONFIG_PROVENANCE: true NPM_CONFIG_PROVENANCE: true
TAG: pr-${{ github.event.issue.number }}

View File

@ -5,6 +5,8 @@ set -xe
# Restore all git changes # Restore all git changes
git restore -s@ -SW -- packages examples git restore -s@ -SW -- packages examples
TAG=${1:-latest}
# Bump versions to edge # Bump versions to edge
pnpm jiti ./scripts/bump-edge pnpm jiti ./scripts/bump-edge
@ -22,6 +24,6 @@ for p in packages/* ; do
echo "Publishing $p" echo "Publishing $p"
cp ../../LICENSE . cp ../../LICENSE .
cp ../../README.md . cp ../../README.md .
pnpm publish --access public --no-git-checks pnpm publish --access public --no-git-checks --tag $TAG
popd popd
done done