1
1
mirror of https://github.com/primer/css.git synced 2024-09-21 05:39:15 +03:00

ci: remove custom publish statuses

This commit is contained in:
Shawn Allen 2019-02-12 13:36:51 -08:00
parent 5b8e729c54
commit 1085ed6e4e
3 changed files with 1 additions and 16 deletions

View File

@ -30,9 +30,6 @@ action "publish" {
uses = "primer/publish@v1.0.0"
args = ["--", "--unsafe-perm"]
secrets = ["GITHUB_TOKEN", "NPM_AUTH_TOKEN"]
env = {
PUBLISH_STATUS_CONTEXT = "npm publish primer"
}
}
action "deploy" {

View File

@ -1,17 +1,9 @@
#!/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/

View File

@ -1,9 +1,5 @@
#!/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..."
set -e
# generate the build directory
npm run dist