diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..6c68847 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,9 @@ +# These are supported funding model platforms + +# github: [jaywcjlove] +# patreon: # Replace with a single Patreon username +# open_collective: # Replace with a single Open Collective username +# ko_fi: # Replace with a single Ko-fi username +# tidelift: npm/colors-cli +# community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry +custom: https://jaywcjlove.github.io/#/sponsor diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 194f350..d48ea63 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,11 +7,14 @@ on: jobs: build-deploy: runs-on: ubuntu-latest + permissions: + contents: write + id-token: write steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 18 registry-url: 'https://registry.npmjs.org' - run: npm install @@ -27,17 +30,12 @@ jobs: Decimal: https://jaywcjlove.github.io/colors-named-decimal/ Hex: https://jaywcjlove.github.io/colors-named-hex/ Named: index.html + Sponsor: https://jaywcjlove.github.io/#/sponsor EOF - - run: npm install idoc@1.26.6 -g + - run: npm install idoc@1.27.2 -g - run: idoc - run: cp -rp coverage/lcov-report dist - # - name: Converts Markdown to HTML - # uses: jaywcjlove/markdown-to-html-cli@main - # with: - # output: coverage/index.html - # github-corners: https://github.com/jaywcjlove/colors-named - # favicon: data:image/svg+xml,🎨 - name: Create Coverage Badges uses: jaywcjlove/coverage-badges-cli@main @@ -85,7 +83,7 @@ jobs: name: ${{ steps.create_tag.outputs.version }} tag: ${{ steps.create_tag.outputs.version }} body: | - [![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/colors-named@${{steps.changelog.outputs.version}}/file/README.md) + [![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor) [![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/colors-named@${{steps.changelog.outputs.version}}/file/README.md) Documentation ${{ steps.changelog.outputs.tag }}: https://raw.githack.com/jaywcjlove/colors-named/${{ steps.changelog.outputs.gh-pages-short-hash }}/index.html Comparing Changes: ${{ steps.changelog.outputs.compareurl }} @@ -96,7 +94,7 @@ jobs: ${{ steps.changelog.outputs.changelog }} - - run: npm publish + - run: npm publish --access public --provenance name: 📦 colors-named publish to NPM continue-on-error: true env: diff --git a/README.md b/README.md index c7357e6..67169fd 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ colors-named === +[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor) [![Build & Deploy](https://github.com/jaywcjlove/colors-named/actions/workflows/ci.yml/badge.svg)](https://github.com/jaywcjlove/colors-named/actions/workflows/ci.yml) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/colors-named/file/README.md) [![npm version](https://img.shields.io/npm/v/colors-named.svg)](https://www.npmjs.com/package/colors-named) diff --git a/package.json b/package.json index e1e1e49..ba042f9 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "types": "./lib/index.d.ts", "exports": "./lib/index.js", "homepage": "https://jaywcjlove.github.io/colors-named/", + "funding": "https://jaywcjlove.github.io/#/sponsor", "repository": { "type": "git", "url": "https://github.com/jaywcjlove/colors-named"