Add Setup for git.tben.me. Add publish.sh script
This commit is contained in:
parent
4ee3876710
commit
d75125d9fa
2
.npmrc
Normal file
2
.npmrc
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
@moduletrace:registry=https://git.tben.me/api/packages/moduletrace/npm/
|
||||||
|
//git.tben.me/api/packages/moduletrace/npm/:_authToken=${GITBEN_NPM_TOKEN}
|
||||||
21
publish.sh
Executable file
21
publish.sh
Executable file
@ -0,0 +1,21 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
if [ -z "$1" ]; then
|
||||||
|
msg="Updates"
|
||||||
|
else
|
||||||
|
msg="$1"
|
||||||
|
fi
|
||||||
|
|
||||||
|
tsc --noEmit
|
||||||
|
|
||||||
|
rm -rf dist
|
||||||
|
|
||||||
|
tsc
|
||||||
|
|
||||||
|
git add .
|
||||||
|
git commit -m "$msg"
|
||||||
|
git push
|
||||||
|
|
||||||
|
bun publish
|
||||||
Loading…
Reference in New Issue
Block a user