Skip to content

Commit

Permalink
ci: allow specifying tag for edge releases
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed May 15, 2023
1 parent f88c1e6 commit 5fdb6a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/release-pr.yml
Expand Up @@ -46,3 +46,4 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
NPM_CONFIG_PROVENANCE: true
TAG: pr-${{ github.event.issue.number }}
4 changes: 3 additions & 1 deletion scripts/release-edge.sh
Expand Up @@ -5,6 +5,8 @@ set -xe
# Restore all git changes
git restore -s@ -SW -- packages examples

TAG=${1:-latest}

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

Expand All @@ -22,6 +24,6 @@ for p in packages/* ; do
echo "Publishing $p"
cp ../../LICENSE .
cp ../../README.md .
pnpm publish --access public --no-git-checks
pnpm publish --access public --no-git-checks --tag $TAG
popd
done

0 comments on commit 5fdb6a6

Please sign in to comment.