We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f99bf2 commit f861d6cCopy full SHA for f861d6c
.build/pre-release.ps1
@@ -0,0 +1,10 @@
1
+"//registry.npmjs.org/:_authToken=$env:NPM_TOKEN`n" | out-file "$env:userprofile\.npmrc" -Encoding ASCII
2
+npm whoami
3
+
4
+$timestamp = Get-Date -Format yyyyMMddhhmmss
5
+$patchVersion = (npm --no-git-tag version patch)
6
+$nextVersion = "${patchVersion}-next.${timestamp}".Substring(1)
7
+echo $nextVersion
8
9
+npm version --no-git-tag -f $nextVersion
10
+npm run publish:next
.build/pre-release.sh
@@ -1,6 +1,9 @@
#!/usr/bin/env bash
set -ex
+echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
patchVersion=$(npm --no-git-tag version patch)
nextVersion=${patchVersion}-next."$(date +%Y%m%d%H%M%S)"
echo "${nextVersion:1}"
0 commit comments