Skip to content

Commit

Permalink
refactor: update readme and publish
Browse files Browse the repository at this point in the history
  • Loading branch information
Aarebecca committed Dec 13, 2024
1 parent 8febb72 commit f660f11
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,16 @@ jobs:
- name: Test
run: npm run test

- name: Copy File
run: cp ./package.json ./dist && cp README.md ./dist

- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
publish_dir: ./dist

- name: Publish
run: npm publish ./dist --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

This repository records the badges granted to the Github users who have made outstanding contributions to the AntV project.

> 这个仓库库记录授予对 AntV 项目有贡献的 Github 用户的徽章
> 这个仓库库记录授予对 AntV 项目有贡献的 Github 用户的徽章

## Badge Usage / 徽章使用方式
Expand Down
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,15 @@
"awards",
"badge"
],
"files": [
"dist/*"
],
"author": "Aarebecca",
"license": "MIT",
"devDependencies": {
"inquirer": "^12.2.0"
},
"publishConfig": {
"access": "public"
}
}
2 changes: 1 addition & 1 deletion scripts/readme.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const description = `
This repository records the badges granted to the Github users who have made outstanding contributions to the AntV project.
> 这个仓库库记录授予对 AntV 项目有贡献的 Github 用户的徽章
> 这个仓库库记录授予对 AntV 项目有贡献的 Github 用户的徽章
`;

const maintain = `
Expand Down

0 comments on commit f660f11

Please sign in to comment.