Skip to content

Commit ddd928c

Browse files
author
kkuzmin
authored
Use public GH creds for tag publish (#53)
1 parent bcd3c85 commit ddd928c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ps_spec.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ stages:
2222
commands:
2323
- |
2424
set -ex
25-
#git config --global --add url."[email protected]:".insteadOf "https://github.com/"
26-
25+
2726
echo //registry.npmjs.org/:_authToken=$NPM_TOKEN > .npmrc
2827
npm whoami
2928
@@ -32,6 +31,8 @@ stages:
3231
V_VERSION=v$PKGVERSION
3332
WORDCOUNT=$(npm view "${PKGNAME}@${PKGVERSION}" | wc -c)
3433
34+
git config --global credential.helper \'store\' || true
35+
echo "https://$ALPS_GH_USER:[email protected]" > ~/.git-credentials
3536
git tag -a $V_VERSION -m "$PKGNAME release $V_VERSION" HEAD
3637
3738
npm install

0 commit comments

Comments
 (0)