Skip to content

Commit c9277c1

Browse files
author
Simon Hofmann
committed
(#4) Added publish and publish-next scripts
1 parent dce87eb commit c9277c1

File tree

4 files changed

+21
-0
lines changed

4 files changed

+21
-0
lines changed

Diff for: .build/pre-release.ps1

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
$timestamp = Get-Date -Format yyyyMMddhhmmss
2+
$patchVersion = (npm --no-git-tag version patch)
3+
$nextVersion = "${patchVersion}-next.${timestamp}".Substring(1)
4+
echo $nextVersion
5+
6+
npm version --no-git-tag -f $nextVersion
7+
npm run publish:next

Diff for: .build/pre-release.sh

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env bash
2+
set -ex
3+
4+
patchVersion=$(npm --no-git-tag version patch)
5+
nextVersion=${patchVersion}-next."$(date +%Y%m%d%H%M%S)"
6+
echo "${nextVersion:1}"
7+
8+
npm version --no-git-tag -f "${nextVersion:1}"
9+
npm run publish:next

Diff for: .build/release.ps1

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npm publish

Diff for: .build/release.sh

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env bash
2+
set -ex
3+
4+
npm publish

0 commit comments

Comments
 (0)