hexo-design-cards 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/release.yml +48 -0
- package/CHANGELOG.md +5 -0
- package/README.md +1 -1
- package/lib/css.js +1 -1
- package/package.json +1 -1
- package/screenshots/03-compare.png +0 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags: ['v*']
|
|
6
|
+
|
|
7
|
+
permissions:
|
|
8
|
+
contents: write
|
|
9
|
+
id-token: write
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
test:
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
strategy:
|
|
15
|
+
matrix:
|
|
16
|
+
node-version: [18, 20, 22]
|
|
17
|
+
steps:
|
|
18
|
+
- uses: actions/checkout@v4
|
|
19
|
+
- uses: actions/setup-node@v4
|
|
20
|
+
with:
|
|
21
|
+
node-version: ${{ matrix.node-version }}
|
|
22
|
+
- run: npm install
|
|
23
|
+
- run: npm test
|
|
24
|
+
|
|
25
|
+
release:
|
|
26
|
+
needs: test
|
|
27
|
+
runs-on: ubuntu-latest
|
|
28
|
+
steps:
|
|
29
|
+
- uses: actions/checkout@v4
|
|
30
|
+
|
|
31
|
+
- name: Create GitHub Release
|
|
32
|
+
uses: softprops/action-gh-release@v2
|
|
33
|
+
with:
|
|
34
|
+
generate_release_notes: true
|
|
35
|
+
|
|
36
|
+
publish:
|
|
37
|
+
needs: test
|
|
38
|
+
runs-on: ubuntu-latest
|
|
39
|
+
steps:
|
|
40
|
+
- uses: actions/checkout@v4
|
|
41
|
+
- uses: actions/setup-node@v4
|
|
42
|
+
with:
|
|
43
|
+
node-version: 22
|
|
44
|
+
registry-url: https://registry.npmjs.org
|
|
45
|
+
- run: npm install
|
|
46
|
+
- run: npm publish --provenance --access public
|
|
47
|
+
env:
|
|
48
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# hexo-design-cards
|
|
2
2
|
|
|
3
|
-
[](https://github.com/leafbird/hexo-design-cards/actions/workflows/ci.yml) [](https://github.com/leafbird/hexo-design-cards/actions/workflows/ci.yml) [](https://www.npmjs.com/package/hexo-design-cards) [](https://www.npmjs.com/package/hexo-design-cards) [](https://opensource.org/licenses/MIT)
|
|
4
4
|
|
|
5
5
|
Beautiful design card tags for [Hexo](https://hexo.io) — replace verbose inline HTML with clean tag syntax.
|
|
6
6
|
|
package/lib/css.js
CHANGED
|
@@ -26,7 +26,7 @@ function getCSS() {
|
|
|
26
26
|
|
|
27
27
|
.dc-compare{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:20px 0}
|
|
28
28
|
.dc-compare-option{padding:20px;border-radius:12px;border-width:3px;border-style:solid}
|
|
29
|
-
.dc-compare-option.dc-recommended{border-width:
|
|
29
|
+
.dc-compare-option.dc-recommended{border-width:4px}
|
|
30
30
|
.dc-compare-option h4{margin:0 0 10px;text-align:center}
|
|
31
31
|
.dc-compare-option .dc-emoji{text-align:center;font-size:40px}
|
|
32
32
|
.dc-compare-body{text-align:center}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hexo-design-cards",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Beautiful design card tags for Hexo — flow diagrams, header cards, accent cards, comparison cards, quotes, alerts, mini cards, and section banners with customizable colorways.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"keywords": [
|
|
Binary file
|