mirror of
https://github.com/primer/css.git
synced 2024-11-23 11:27:26 +03:00
16 lines
385 B
Bash
Executable File
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
|