Skip to content

Commit 382690c

Browse files
chrisghillAndreas
andauthored
Add 'access' flag to bundle publish (#130)
* Add 'access' flag to bundle publish * dist --------- Co-authored-by: Andreas <andreas@massdriver.cloud>
1 parent 5fce815 commit 382690c

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

bundle_publish/action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ inputs:
77
Path to a directory containing a massdriver.yaml file.
88
required: false
99
default: '.'
10+
access:
11+
description: |
12+
Access level of bundle once published
13+
required: false
14+
default: 'private'
1015
runs:
1116
using: 'node16'
1217
main: '../dist/bundle_publish/index.js'

dist/bundle_publish/index.js

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/bundle_publish.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ import * as exec from "@actions/exec"
33

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

78
try {
89
const command = `mass bundle publish`
9-
const args = [`--build-directory`, buildDirectory]
10+
const args = [`--build-directory`, buildDirectory, `--access`, access]
1011
await exec.exec(command, args)
1112
// eslint-disable-next-line @typescript-eslint/no-explicit-any
1213
} catch (error: any) {

0 commit comments

Comments
 (0)