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

16 lines
385 B
Bash
Executable File

#!/bin/bash
set -e
slug=$(cat package.json | npx fx 'p => `${p.name}@${p.version}`')
npx action-status --context="$PUBLISH_STATUS_CONTEXT" \
--state=success \
--description="published $version" \
--url="https://unpkg.com/$slug/"
file=publish-files.log
if [[ -f $file ]]; then
echo "deleting all files listed in $file..."
cat $file | xargs rm -rfv
rm $file
fi