mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-24 22:55:13 +00:00
ci: allow specifying tag for edge releases
This commit is contained in:
parent
f88c1e6452
commit
5fdb6a6d66
1
.github/workflows/release-pr.yml
vendored
1
.github/workflows/release-pr.yml
vendored
@ -46,3 +46,4 @@ jobs:
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
|
||||
NPM_CONFIG_PROVENANCE: true
|
||||
TAG: pr-${{ github.event.issue.number }}
|
||||
|
@ -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
|
||||
|
||||
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user