Skip to content

Commit 98177a9

Browse files
committed
wip
1 parent 2131a86 commit 98177a9

3 files changed

Lines changed: 19 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,17 @@ jobs:
2323
- run: npm run build
2424
- name: Publish all packages to npm
2525
run: |
26+
FAILED=""
2627
for pkg in alpinejs csp intersect collapse persist resize anchor morph focus sort mask ui docs; do
2728
echo "Publishing $pkg..."
2829
cd packages/$pkg
29-
npm publish --access public --provenance
30+
if ! npm publish --access public --provenance 2>&1; then
31+
echo "::warning::Failed to publish $pkg"
32+
FAILED="$FAILED $pkg"
33+
fi
3034
cd ../..
3135
done
36+
if [ -n "$FAILED" ]; then
37+
echo "::error::Failed to publish:$FAILED"
38+
exit 1
39+
fi

packages/csp/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
"name": "@alpinejs/csp",
33
"version": "3.15.11",
44
"description": "A CSP-friendly build of AlpineJS",
5+
"repository": {
6+
"type": "git",
7+
"url": "https://github.com/alpinejs/alpine.git",
8+
"directory": "packages/csp"
9+
},
510
"author": "Caleb Porzio",
611
"license": "MIT",
712
"main": "dist/module.cjs.js",

packages/docs/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
"name": "@alpinejs/docs",
33
"version": "3.15.11",
44
"description": "The documentation for Alpine",
5+
"repository": {
6+
"type": "git",
7+
"url": "https://github.com/alpinejs/alpine.git",
8+
"directory": "packages/docs"
9+
},
510
"author": "Caleb Porzio",
611
"license": "MIT"
712
}

0 commit comments

Comments
 (0)