From 1b3eaca94bece66b17de3d0bd5f312243529db1b Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Mon, 27 Nov 2023 12:21:53 +0800 Subject: [PATCH] chore: add sponsor badge. --- .github/FUNDING.yml | 14 +++++++------- .github/workflows/ci.yml | 7 +++++-- README.md | 2 +- package.json | 1 + 4 files changed, 14 insertions(+), 10 deletions(-) diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index a33ec84..611c09a 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1,9 +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/magic-input -community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry -custom: https://jaywcjlove.github.io/sponsor.html +# 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/xxx +# 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 dbfaae4..a3fb4e0 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 @@ -58,7 +61,7 @@ jobs: - name: 📦 magic-input publish to NPM - run: npm publish + run: npm publish --access public --provenance continue-on-error: true env: NODE_AUTH_TOKEN: '${{ secrets.NPM_TOKEN }}' \ No newline at end of file diff --git a/README.md b/README.md index c8fd861..e8b679a 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # magic-input - +[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor) [![Downloads](https://img.shields.io/npm/dm/magic-input.svg?style=flat)](https://www.npmjs.com/package/magic-input) [![CI](https://github.com/jaywcjlove/magic-input/actions/workflows/ci.yml/badge.svg)](https://github.com/jaywcjlove/magic-input/actions/workflows/ci.yml) diff --git a/package.json b/package.json index 3091702..04f7330 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "version": "2.0.0", "description": "CSS3 Styles for Checkbox and Radio Button inputs look prettier.", "homepage": "https://jaywcjlove.github.io/magic-input", + "funding": "https://jaywcjlove.github.io/#/sponsor", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1",