-
-
Save jbottigliero/29e8de2dda4db7d3f07626dc99547026 to your computer and use it in GitHub Desktop.
release-please via Google Cloud build
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:erbium | |
WORKDIR /builder | |
COPY package*.json ./ | |
COPY cli.js . | |
# @see https://github.com/npm/npm/issues/17346 | |
RUN npm config set unsafe-perm true | |
RUN npm install | |
COPY entrypoint.bash . | |
ENTRYPOINT ["/builder/entrypoint.bash"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Running: release-please $@" | |
node /builder/release-please.js "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "release-please-cloudbuild", | |
"version": "0.0.1", | |
"description": "A wrapper for release-please to allow configuration and triggering via Google Cloud Build", | |
"private": true, | |
"license": "UNLICENSED", | |
"dependencies": { | |
"release-please": "TBD", | |
"yargs": "^16.0.0" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
const releasePlease = require('release-please/build/src/runner') | |
const {argv} = require('yargs'); | |
const command = argv._.length === 0 ? '' : argv._[0]; | |
releasePlease(argv, command); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment