Skip to content

Commit

Permalink
ci: update workflows config.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Oct 2, 2023
1 parent 2c23c05 commit 4af77cf
Showing 1 changed file with 19 additions and 14 deletions.
33 changes: 19 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,14 @@ on:
jobs:
build:
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
Expand All @@ -21,17 +24,24 @@ jobs:
- name: Create Coverage Badges
uses: jaywcjlove/coverage-badges-cli@main

- name: Converts Markdown to HTML
uses: jaywcjlove/markdown-to-html-cli@main
with:
output: coverage/index.html
github-corners: https://github.com/kktjs/create-kkt
- name: Create idoc config.
run: |
cat > idoc.yml << EOF
site: "Create-KKT {{version}}"
menus:
Home: index.html
KKT: https://kktjs.github.io/kkt/
NCC: https://kktjs.github.io/ncc/
Zip: https://kktjs.github.io/zip/
EOF
- run: cp -rp coverage/lcov-report ./dist/lcov-report

- name: Generate Contributors Images
uses: jaywcjlove/github-action-contributors@main
with:
filter-author: (renovate\[bot\]|renovate-bot|dependabot\[bot\])
output: coverage/CONTRIBUTORS.svg
output: dist/CONTRIBUTORS.svg
avatarSize: 42

- name: Is a tag created auto?
Expand All @@ -49,7 +59,7 @@ jobs:
with:
commit_message: ${{steps.tag_version.outputs.tag}} ${{ github.event.head_commit.message }}
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./coverage
publish_dir: ./dist

- name: Generate Changelog
id: changelog
Expand Down Expand Up @@ -79,13 +89,8 @@ jobs:
${{ steps.changelog.outputs.changelog }}
- run: npm publish --access public
- run: npm publish --access public --provenance
name: 📦 create-kkt publish to NPM
continue-on-error: true
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 4af77cf

Please sign in to comment.