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:
parent
5b8e729c54
commit
1085ed6e4e
3
.github/main.workflow
vendored
3
.github/main.workflow
vendored
@ -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" {
|
||||
|
@ -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/
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user