diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8347772..37cf1f0 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,9 +30,10 @@ jobs: Decimal: index.html Hex: https://jaywcjlove.github.io/colors-named-hex/ Named: https://jaywcjlove.github.io/colors-named/ + 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 @@ -97,7 +101,7 @@ jobs: ${{ steps.changelog.outputs.changelog }} - - run: npm publish + - run: npm publish --access public --provenance name: 📦 colors-named-decimal publish to NPM continue-on-error: true env: diff --git a/README.md b/README.md index 09b4998..2972d86 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ colors-named-decimal === +[![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-decimal/actions/workflows/ci.yml/badge.svg)](https://github.com/jaywcjlove/colors-named-decimal/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-decimal/file/README.md) [![npm version](https://img.shields.io/npm/v/colors-named-decimal.svg)](https://www.npmjs.com/package/colors-named-decimal) diff --git a/package.json b/package.json index 9810327..e6db84f 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "types": "./lib/index.d.ts", "exports": "./lib/index.js", "homepage": "https://jaywcjlove.github.io/colors-named-decimal", + "funding": "https://jaywcjlove.github.io/#/sponsor", "repository": { "type": "git", "url": "https://github.com/jaywcjlove/colors-named-decimal"