Skip to content

Commit 71aa9bc

Browse files
committedNov 27, 2023
chore: add sponsor badge.
1 parent 00df0b8 commit 71aa9bc

File tree

4 files changed

+28
-12
lines changed

4 files changed

+28
-12
lines changed
 

‎.github/FUNDING.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# These are supported funding model platforms
22

3-
github: [jaywcjlove]
4-
patreon: # Replace with a single Patreon username
5-
open_collective: # Replace with a single Open Collective username
6-
ko_fi: # Replace with a single Ko-fi username
7-
tidelift: # npm/parcel-plugin-markdown-string
8-
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9-
custom: https://jaywcjlove.github.io/sponsor.html
3+
# github: [jaywcjlove]
4+
# patreon: # Replace with a single Patreon username
5+
# open_collective: # Replace with a single Open Collective username
6+
# ko_fi: # Replace with a single Ko-fi username
7+
# tidelift: #npm/mocker-api
8+
# community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
custom: https://jaywcjlove.github.io/#/sponsor

‎.github/workflows/ci.yml

+18-5
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,14 @@ on:
77
jobs:
88
build:
99
runs-on: ubuntu-latest
10+
permissions:
11+
contents: write
12+
id-token: write
1013
steps:
1114
- uses: actions/checkout@v3
1215
- uses: actions/setup-node@v3
1316
with:
14-
node-version: 16
17+
node-version: 18
1518
registry-url: 'https://registry.npmjs.org'
1619

1720
- run: npm install
@@ -23,9 +26,17 @@ jobs:
2326
npm install
2427
npm run build
2528
26-
- run: npm i markdown-to-html-cli -g
27-
- run: mkdir build
28-
- run: markdown-to-html --output build/index.html
29+
- name: Create idoc config.
30+
run: |
31+
cat > idoc.yml << EOF
32+
site: "parcel-transformer-markdown {{version}}"
33+
menus:
34+
Home: index.html
35+
Sponsor: https://jaywcjlove.github.io/#/sponsor
36+
EOF
37+
38+
- run: npm install idoc@1.27.2 -g
39+
- run: idoc --output="build"
2940

3041
- name: Generate Contributors Images
3142
uses: jaywcjlove/github-action-contributors@main
@@ -62,6 +73,8 @@ jobs:
6273
name: ${{ steps.create_tag.outputs.version }}
6374
tag: ${{ steps.create_tag.outputs.version }}
6475
body: |
76+
[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)
77+
6578
```js
6679
{
6780
"extends": "@parcel/config-default",
@@ -76,7 +89,7 @@ jobs:
7689
${{ steps.changelog.outputs.changelog }}
7790
7891
79-
- run: npm publish --access public
92+
- run: npm publish --access public --provenance
8093
name: 📦 parcel-transformer-markdown publish to NPM
8194
continue-on-error: true
8295
env:

‎README.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
parcel-transformer-markdown
22
===
33

4+
[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)
45
[![NPM Downloads](https://img.shields.io/npm/dm/parcel-transformer-markdown.svg?style=flat)](https://www.npmjs.com/package/parcel-transformer-markdown)
56
[![Build & Deploy](https://github.com/jaywcjlove/parcel-plugin-markdown-string/actions/workflows/ci.yml/badge.svg)](https://github.com/jaywcjlove/parcel-plugin-markdown-string/actions/workflows/ci.yml)
67
[![parcel-transformer-markdown version](https://img.shields.io/npm/v/parcel-transformer-markdown.svg?label=parcel-transformer-markdown)](https://www.npmjs.com/package/parcel-transformer-markdown)

‎package.json

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
"version": "3.0.0",
44
"description": "Parcel plugin for loader markdown string & Markdown transformer.",
55
"author": "kenny wong <wowohoo@qq.com>",
6+
"homepage": "https://jaywcjlove.github.io/parcel-plugin-markdown-string",
7+
"funding": "https://jaywcjlove.github.io/#/sponsor",
68
"license": "MIT",
79
"main": "./lib/index.js",
810
"module": "./esm/index.js",

0 commit comments

Comments
 (0)
Please sign in to comment.