mirror of
https://github.com/prompt-security/clawsec.git
synced 2026-06-23 10:21:21 +03:00
4a1cf246eb
* fix(release): install pinned clawhub CLI from npm * test(release): assert public clawhub lockfile source
12 lines
279 B
Bash
12 lines
279 B
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
CLI_PREFIX="${CLAWHUB_CLI_PREFIX:-.github/clawhub-cli}"
|
|
|
|
npm ci --prefix "$CLI_PREFIX"
|
|
|
|
if [ -n "${GITHUB_PATH:-}" ]; then
|
|
workspace="${GITHUB_WORKSPACE:-$(pwd)}"
|
|
echo "${workspace}/${CLI_PREFIX}/node_modules/.bin" >> "$GITHUB_PATH"
|
|
fi
|