Skip to content

Commit

Permalink
chore(release): 1.0.6 [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Jul 9, 2022
1 parent aeb0f67 commit 38005ba
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 30 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## [1.0.6](https://github.com/antongolub/action-setup-bun/compare/v1.0.5...v1.0.6) (2022-07-09)

### Fixes & improvements
* fix: fix PATH injection ([aeb0f67](https://github.com/antongolub/action-setup-bun/commit/aeb0f6750af46374b0823ff6855fdad41683437d))

## [1.0.5](https://github.com/antongolub/action-setup-bun/compare/v1.0.4...v1.0.5) (2022-07-09)

### Fixes & improvements
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "action-setup-bun",
"version": "1.0.5",
"version": "1.0.6",
"private": true,
"description": "Setup GitHub Actions workflow with a specific version of Bun",
"main": "./target/index.js",
Expand Down
43 changes: 14 additions & 29 deletions target/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3284,33 +3284,6 @@ if (process.env.NODE_DEBUG && /\btunnel\b/.test(process.env.NODE_DEBUG)) {
exports.debug = debug; // for test


/***/ }),

/***/ 573:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {

const exec = __nccwpck_require__(514)
const path = __nccwpck_require__(17)

const installSh = __nccwpck_require__.ab + "install.sh"
const setup = async (version) => {
const args = [__nccwpck_require__.ab + "install.sh"]
if (version) args.push(version)

const res = await exec.getExecOutput('bash', args, { ignoreReturnCode: true})

await exec.exec('echo "/home/runner/.bun/bin:" >> $GITHUB_PATH')

// if (res.stderr) throw res.stderr

// cp.execSync('exec bash')
}

module.exports = {
setup
}


/***/ }),

/***/ 491:
Expand Down Expand Up @@ -3459,13 +3432,25 @@ var __webpack_exports__ = {};
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
(() => {
const core = __nccwpck_require__(186)
const {setup} = __nccwpck_require__(573)
const exec = __nccwpck_require__(514);
const path = __nccwpck_require__(17)

const installSh = __nccwpck_require__.ab + "install.sh"
const setup = async (version) => {
const args = [__nccwpck_require__.ab + "install.sh"]
if (version) args.push(version)

const res = await exec.getExecOutput('bash', args, { ignoreReturnCode: true})

return /.+BUN_INSTALL="([^"]+)"/.match(res.stderr)[1]
}

async function main() {
try {
const version = core.getInput('version')
await setup(version)
const BUN_INSTALL = await setup(version)

core.addPath(path.join(BUN_INSTALL, 'bin'))
} catch (e) {
core.setOutput("error_message", e.message)
core.setFailed(e.message)
Expand Down

0 comments on commit 38005ba

Please sign in to comment.