1
1
mirror of https://github.com/primer/css.git synced 2024-11-23 11:27:26 +03:00
css/script/prepublish
2019-02-07 16:40:38 -08:00

16 lines
381 B
Bash
Executable File

#!/bin/bash
slug=$(cat package.json | npx fx 'p => `${p.name}@${p.version}`')
npx action-status --context="$PUBLISH_STATUS_CONTEXT" \
--state=pending \
--description="publishing $slug..."
# generate the build directory
npm run dist
files=$(git ls-files src | sed -e 's#^src/##' | sed -e 's#/.*$##' | sort -u)
echo $files > publish-files.log
cd src
cp -rv $files ..
cd -