Skip to content

Commit

Permalink
chore: add sponsor badge.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Nov 27, 2023
1 parent 3dc4af2 commit 90f3b4d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build & Deploy
name: CI
on:
push:
branches:
Expand All @@ -7,23 +7,27 @@ 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
- run: npm run build
- run: npm install idoc@1.26.6 -g
- run: npm install idoc@1.27.2 -g
- name: Create idoc config.
working-directory: core
run: |
cat > idoc.yml << EOF
site: "EJS Cli {{version}}"
menus:
Home: index.html
Sponsor: https://jaywcjlove.github.io/#/sponsor
EOF
- run: idoc -s "EJS Cli {{version}}"
working-directory: core
Expand Down Expand Up @@ -68,7 +72,7 @@ jobs:
path: core/package.json
unset: scripts,devDependencies

- run: npm publish --access public
- run: npm publish --access public --provenance
continue-on-error: true
working-directory: core
env:
Expand Down
1 change: 1 addition & 0 deletions core/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# ejs-cli

[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)
[![CI](https://github.com/jaywcjlove/ejs-cli/actions/workflows/main.yml/badge.svg)](https://github.com/jaywcjlove/ejs-cli/actions/workflows/main.yml)
[![NPM version](https://img.shields.io/npm/v/@wcj/ejs-cli.svg?style=flat&label=@wcj/ejs-cli)](https://npmjs.org/package/@wcj/ejs-cli)

Expand Down
1 change: 1 addition & 0 deletions core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"author": "jaywcjlove",
"license": "MIT",
"homepage": "https://jaywcjlove.github.io/ejs-cli",
"funding": "https://jaywcjlove.github.io/#/sponsor",
"repository": {
"type": "git",
"url": "https://github.com/jaywcjlove/ejs-cli.git"
Expand Down
1 change: 1 addition & 0 deletions examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "1.1.5",
"description": "",
"main": "index.js",
"funding": "https://jaywcjlove.github.io/#/sponsor",
"scripts": {
"build": "ejs-cli 'template/**/*' -f data.json",
"start": "ejs-cli 'template/**/*' -f data.json --watch"
Expand Down

0 comments on commit 90f3b4d

Please sign in to comment.