Skip to content

Commit 168a18f

Browse files
committed
chore: add sponsor badge.
1 parent 50fe784 commit 168a18f

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,14 @@ jobs:
88
build:
99
if: github.repository == 'jaywcjlove/refs-cli'
1010
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
id-token: write
1114
steps:
1215
- uses: actions/checkout@v3
1316
- uses: actions/setup-node@v3
1417
with:
15-
node-version: 16
18+
node-version: 18
1619
registry-url: 'https://registry.npmjs.org'
1720

1821
- run: npm install
@@ -60,12 +63,15 @@ jobs:
6063
name: ${{ steps.create_tag.outputs.version }}
6164
tag: ${{ steps.create_tag.outputs.version }}
6265
body: |
63-
Documentation ${{ needs.build.outputs.create_tag_version }}: https://raw.githack.com/jaywcjlove/refs-cli/${{ steps.changelog.outputs.gh-pages-short-hash }}/index.html
66+
[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)
67+
68+
Documentation ${{ steps.changelog.outputs.tag }}: https://raw.githack.com/jaywcjlove/refs-cli/${{ steps.changelog.outputs.gh-pages-short-hash }}/index.html
6469
Comparing Changes: ${{ steps.changelog.outputs.compareurl }}
6570
6671
${{ steps.changelog.outputs.changelog }}
6772
68-
- run: npm publish
73+
- run: npm publish --access public --provenance
74+
name: 📦 refs-cli publish to NPM
6975
continue-on-error: true
7076
env:
7177
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ Refs CLI
22
===
33

44
<!--rehype:ignore:start-->
5+
[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)
56
[![CI](https://github.com/jaywcjlove/refs-cli/actions/workflows/ci.yml/badge.svg)](https://github.com/jaywcjlove/refs-cli/actions/workflows/ci.yml)
67
[![NPM version](https://img.shields.io/npm/v/refs-cli.svg?style=flat)](https://npmjs.org/package/refs-cli)
78
[![Repo Dependents](https://badgen.net/github/dependents-repo/jaywcjlove/refs-cli)](https://github.com/jaywcjlove/refs-cli/network/dependents)

0 commit comments

Comments
 (0)