Skip to content

Commit 713e9b6

Browse files
committed
ci: Hint OpenSSH format for key.
1 parent 4a7b07a commit 713e9b6

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/publish.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,17 @@ jobs:
5858
echo SHA: $OLD_SHA1 -> $NEW_SHA1
5959
echo Publishing...
6060
npm publish
61-
echo $REGISTRY_SSH_KEY > verdaccio.pem
62-
chmod 600 verdaccio.pem
63-
ls -l verdaccio.pem
61+
echo $REGISTRY_SSH_KEY > id_rsa
62+
chmod 600 id_rsa
63+
ls -l id_rsa
6464
echo Getting package.json to patch...
65-
scp -v -i verdaccio.pem -o StrictHostKeyChecking=no [email protected]:$REGISTRY_SSH_PATH/package.json package-registry.json
65+
scp -v -i id_rsa -o StrictHostKeyChecking=no [email protected]:$REGISTRY_SSH_PATH/package.json package-registry.json
6666
cat package-registry.json
6767
sed -i 's/$OLD_SHA1/$NEW_SHA1/' package-registry.json
6868
cat package-registry.json
69-
scp -i verdaccio.pem -o StrictHostKeyChecking=no $NPM_ARCHIVE [email protected]:$REGISTRY_SSH_PATH
70-
scp -i verdaccio.pem -o StrictHostKeyChecking=no package-registry.json [email protected]:$REGISTRY_SSH_PATH/package.json
71-
rm verdaccio.pem
69+
scp -i id_rsa -o StrictHostKeyChecking=no $NPM_ARCHIVE [email protected]:$REGISTRY_SSH_PATH
70+
scp -i id_rsa -o StrictHostKeyChecking=no package-registry.json [email protected]:$REGISTRY_SSH_PATH/package.json
71+
rm id_rsa
7272
env:
7373
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
7474
REGISTRY_SSH_KEY: ${{ secrets.REGISTRY_SSH_KEY }}

0 commit comments

Comments
 (0)