mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +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:
|
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 }}
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user