mirror of
https://github.com/primer/css.git
synced 2024-12-02 07:53:06 +03:00
18 lines
400 B
Bash
Executable File
18 lines
400 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
|
|
|
|
rm -rf build/
|