Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitaa17d4c

Browse files
committed
chore: add github workflows config.
1 parentf2ddaef commitaa17d4c

File tree

1 file changed

+87
-0
lines changed

1 file changed

+87
-0
lines changed

‎.github/workflows/ci.yml‎

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
name:CI
2+
on:
3+
push:
4+
branches:
5+
-main
6+
7+
jobs:
8+
build-deploy:
9+
runs-on:ubuntu-latest
10+
steps:
11+
-uses:actions/checkout@v3
12+
-uses:actions/setup-node@v3
13+
with:
14+
node-version:16
15+
registry-url:'https://registry.npmjs.org'
16+
17+
-run:npm install
18+
-run:npm run build
19+
-run:npm run doc
20+
21+
# - run: npm run coverage
22+
# - name: Create Coverage Badges
23+
# uses: jaywcjlove/coverage-badges-cli@main
24+
# with:
25+
# source: core/coverage/coverage-summary.json
26+
# output: ./www/build/badges.svg
27+
28+
# - run: cp -rp core/coverage/lcov-report ./www/build/
29+
30+
-name:Generate Contributors Images
31+
uses:jaywcjlove/github-action-contributors@main
32+
with:
33+
filter-author:(renovate\[bot\]|renovate-bot|dependabot\[bot\])
34+
output:www/build/CONTRIBUTORS.svg
35+
avatarSize:42
36+
37+
-name:Create Tag
38+
id:create_tag
39+
uses:jaywcjlove/create-tag-action@main
40+
with:
41+
token:${{ secrets.GITHUB_TOKEN }}
42+
package-path:./core/package.json
43+
44+
-name:get tag version
45+
id:tag_version
46+
uses:jaywcjlove/changelog-generator@main
47+
48+
-name:Deploy
49+
uses:peaceiris/actions-gh-pages@v3
50+
with:
51+
commit_message:${{steps.tag_version.outputs.tag}} ${{ github.event.head_commit.message }}
52+
github_token:${{ secrets.GITHUB_TOKEN }}
53+
publish_dir:./www/build
54+
55+
-name:Generate Changelog
56+
id:changelog
57+
uses:jaywcjlove/changelog-generator@main
58+
with:
59+
head-ref:${{steps.create_tag.outputs.version}}
60+
filter:'[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
61+
62+
-name:Create Release
63+
uses:ncipollo/release-action@v1
64+
if:steps.create_tag.outputs.successful
65+
with:
66+
token:${{ secrets.GITHUB_TOKEN }}
67+
name:${{ steps.create_tag.outputs.version }}
68+
tag:${{ steps.create_tag.outputs.version }}
69+
body:|
70+
[![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-csv-reader@${{steps.create_tag.outputs.versionNumber}}/file/README.md)
71+
72+
Documentation ${{ steps.changelog.outputs.tag }}: https://raw.githack.com/uiwjs/react-csv-reader/${{ steps.changelog.outputs.gh-pages-short-hash }}/index.html
73+
Or Doc Website: https://htmlpreview.github.io/?https://github.com/uiwjs/react-csv-reader/${{ steps.changelog.outputs.gh-pages-short-hash }}/index.html
74+
Comparing Changes: ${{ steps.changelog.outputs.compareurl }}
75+
76+
```bash
77+
npm i @uiw/react-csv-reader@${{steps.create_tag.outputs.versionNumber}}
78+
```
79+
80+
${{ steps.changelog.outputs.changelog }}
81+
82+
-run:npm publish --access public
83+
name:📦 @uiw/react-csv-reader publish to NPM
84+
continue-on-error:true
85+
working-directory:core
86+
env:
87+
NODE_AUTH_TOKEN:${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp