1
1
mirror of https://github.com/primer/css.git synced 2024-12-03 03:33:40 +03:00
css/script/prepublish

16 lines
381 B
Plaintext
Raw Normal View History

#!/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 -