d5f55b5f9c
Coverage / build (push) Has been cancelled
Docker / Build (push) Has been cancelled
Docker / Publish (push) Has been cancelled
Node.js CI / build (16, macos-latest) (push) Has been cancelled
Node.js CI / build (16, ubuntu-latest) (push) Has been cancelled
Node.js CI / build (16, windows-latest) (push) Has been cancelled
NPM / Build (22) (push) Has been cancelled
NPM / Pack (push) Has been cancelled
NPM / Publish (push) Has been cancelled
14 lines
347 B
Bash
Executable File
14 lines
347 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
VERSION=$(npx pkg-jq -r .version)
|
|
|
|
if npx --package @chatie/semver semver-is-prod "$VERSION"; then
|
|
npx pkg-jq -i '.publishConfig.tag="latest"'
|
|
echo "production release: publicConfig.tag set to latest."
|
|
else
|
|
npx pkg-jq -i '.publishConfig.tag="next"'
|
|
echo 'development release: publicConfig.tag set to next.'
|
|
fi
|
|
|