Skip to content

Commit

Permalink
Add 'access' flag to bundle publish (#130)
Browse files Browse the repository at this point in the history
* Add 'access' flag to bundle publish

* dist

---------

Co-authored-by: Andreas <[email protected]>
  • Loading branch information
chrisghill and Andreas authored May 12, 2023
1 parent 5fce815 commit 382690c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions bundle_publish/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ inputs:
Path to a directory containing a massdriver.yaml file.
required: false
default: '.'
access:
description: |
Access level of bundle once published
required: false
default: 'private'
runs:
using: 'node16'
main: '../dist/bundle_publish/index.js'
3 changes: 2 additions & 1 deletion dist/bundle_publish/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/bundle_publish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ import * as exec from "@actions/exec"

const run = async (): Promise<void> => {
const buildDirectory = core.getInput("build-directory", {required: false})
const access = core.getInput("access", {required: false})

try {
const command = `mass bundle publish`
const args = [`--build-directory`, buildDirectory]
const args = [`--build-directory`, buildDirectory, `--access`, access]
await exec.exec(command, args)
// eslint-disable-next-line @typescript-eslint/no-explicit-any
} catch (error: any) {
Expand Down

0 comments on commit 382690c

Please sign in to comment.