-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Hello,
We have a build that uses the git provider.
It successfully clones our node repo, runs install, runs tests, then starts our custom script.
Our custom script run an npm prune --production, then an npm pack, we then push the new tarball into aws S3. Finally we run npm version patch with a commit message.
Everything up to this point works fine up to this point. The problem comes when we try to push the tags and the modified package.json file back into github.
+ git push --follow-tags origin master
Permission denied (publickey).
fatal: Could not read from remote repository.
How can we successfully complete this process buy pushing to github?
Our build script in case it helps:
appName=`node -e "console.log(require('./package.json').name);"`
npm version patch -m "%s (production deployment)"
npm prune --production
npm pack
# push to s3
version=`node -e "console.log(require('./package.json').version);"`
mv ./${appName}-*.tgz ./${appName}.tgz || exit 1
aws s3 cp --sse AES256 ./${appName}.tgz s3://${bucket}/deployables/${appName}-aws/${appName}-${version}.tgz|| exit 1
# bump the version again for development
npm version patch -m "%s (development)"
git push --follow-tags origin master
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels