Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge master #20

Merged
merged 641 commits into from
Feb 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
641 commits
Select commit Hold shift + click to select a range
42eddc9
0.45.3
huan Jul 27, 2020
2ba82a4
Merge branch 'master' of github.com:Chatie/wechaty
huan Jul 27, 2020
e6b2a50
0.45.4
huan Jul 27, 2020
5fa1604
upgrade puppet to use async-map-like memory-card
huan Jul 30, 2020
b3daaec
upgrade puppet
huan Jul 30, 2020
360e59b
0.45.5
huan Jul 30, 2020
37c0a6d
build onbuild docker image
huan Jul 31, 2020
1983e29
0.45.6
huan Jul 31, 2020
7ad026b
test for onbuild home dir
huan Jul 31, 2020
48adf1f
0.45.7
huan Jul 31, 2020
3c62230
deploy wechaty/onbuld
huan Jul 31, 2020
4a086c8
fix test for both wechaty & /bot
huan Jul 31, 2020
63fa94d
0.45.8
huan Jul 31, 2020
26b9d6e
publish to wechaty/wechatyh
huan Jul 31, 2020
6928f22
0.45.9
huan Jul 31, 2020
8cf7969
build with onbuld
huan Jul 31, 2020
e188320
0.45.10
huan Jul 31, 2020
cc4ad15
rename zixia/wechaty -> wechaty/wechaty
huan Jul 31, 2020
48b6c5f
0.45.11
huan Jul 31, 2020
e7a40e5
fix typo
huan Jul 31, 2020
7318c04
0.45.12
huan Jul 31, 2020
f63d7ff
fix onbuild npm run
huan Jul 31, 2020
27b0522
0.45.13
huan Jul 31, 2020
04fb3c9
update official example
huan Aug 1, 2020
5fc5998
Update README.md
huan Aug 1, 2020
95c2fe8
fix asscessory tests, and protect user class constructor from public …
huan Aug 1, 2020
86073d5
Increase MaxListener for Wechaty
huan Aug 1, 2020
33ef68d
0.45.14
huan Aug 1, 2020
b597270
add plugin uninstaller logic
huan Aug 1, 2020
3c9cea4
0.45.15
huan Aug 1, 2020
3cc1fa2
fix race condition for plugin uninstallation
huan Aug 1, 2020
2115a7b
0.45.16
huan Aug 1, 2020
e430822
template clean
huan Aug 2, 2020
6b48cee
0.45.17
huan Aug 2, 2020
5fa88a8
upgrade puppet
huan Aug 3, 2020
59c9131
0.46.0
huan Aug 3, 2020
2320b5c
0.46.1
huan Aug 3, 2020
5ab4e18
add new puppet for official account
huan Aug 3, 2020
62d88a5
0.46.2
huan Aug 3, 2020
445f565
Wechaty is a Conversational SDK for Chatbot Makers
huan Aug 5, 2020
b33934e
fix bio
huan Aug 5, 2020
d75ce36
0.46.3
huan Aug 5, 2020
be243b4
clean log message
huan Aug 6, 2020
3ac5a83
0.46.4
huan Aug 6, 2020
bd18d73
upgrade hostie
huan Aug 8, 2020
7fabdb4
0.45.6
huan Aug 8, 2020
5c1dde3
merge
huan Aug 8, 2020
febacb1
0.46.5
huan Aug 8, 2020
2f3f1f3
0.47.0
huan Aug 8, 2020
6a58de4
0.47.1
huan Aug 8, 2020
a21b38c
support onbuild:version
huan Aug 8, 2020
d8d4b6b
0.47.2
huan Aug 8, 2020
6769651
use artifact image name
huan Aug 8, 2020
0fe3dff
0.47.3
huan Aug 8, 2020
69c8f92
clean version & tag
huan Aug 8, 2020
bafa153
0.47.4
huan Aug 8, 2020
21dd793
0.47.5
huan Aug 8, 2020
c9095e2
fix hostie start bug
huan Aug 8, 2020
eda2a07
0.47.6
huan Aug 8, 2020
f4a6acb
clean
huan Aug 9, 2020
752ef4c
0.46.5
huan Aug 9, 2020
bdea952
merge
huan Aug 9, 2020
1658703
0.47.7
huan Aug 9, 2020
d9c38af
add svg logos
huan Aug 10, 2020
c215c1a
use wechaty.js.org host
huan Aug 10, 2020
442b946
0.47.7
huan Aug 10, 2020
81a8a3c
Merge branch 'master' of github.com:Chatie/wechaty
huan Aug 10, 2020
7ae124d
0.47.8
huan Aug 10, 2020
0753b10
update
huan Aug 10, 2020
29204a3
0.47.9
huan Aug 10, 2020
ab50765
use docker for changelog
huan Aug 13, 2020
4265cb2
0.47.10
huan Aug 13, 2020
511792a
update changelog
huan Aug 13, 2020
953cf09
0.47.11
huan Aug 13, 2020
b8af345
use wechaty.js.org/qrcode/ to replace wechaty.github.io/qrcode/
huan Aug 15, 2020
2bc06a3
0.47.12
huan Aug 15, 2020
33ec3cc
Update README.md
huan Aug 15, 2020
489a0da
feat: add scoped wxwork puppet into puppet config (#2043)
windmemory Aug 18, 2020
db9dd13
add phone method in contact class (#2039)
windmemory Aug 19, 2020
5d389fa
use puppet.dirtyPayload (https://github.com/wechaty/wechaty-puppet-ho…
huan Aug 19, 2020
2b06d9f
0.47.15
huan Aug 19, 2020
938d2ed
fix dirty exception
huan Aug 19, 2020
9816c62
0.47.16
huan Aug 19, 2020
7d9d022
TODO: implement the dirty logic (https://github.com/wechaty/wechaty-p…
huan Aug 19, 2020
cb3684c
0.47.17
huan Aug 19, 2020
f6cd406
TODO: implement the dirty logic (https://github.com/wechaty/wechaty-p…
huan Aug 19, 2020
8bb311c
0.47.18
huan Aug 19, 2020
7963bcf
implement the dirty logic (https://github.com/wechaty/wechaty-puppet-…
huan Aug 19, 2020
cbd4b10
0.47.19
huan Aug 19, 2020
0d26dfa
clean
huan Aug 19, 2020
d08a133
0.47.20
huan Aug 19, 2020
c0fc661
remove deprecated methods (#2049)
huan Aug 22, 2020
b3eb47f
0.47.21
huan Aug 22, 2020
04f7ede
Upgrade to TypeScript 4.0!
huan Aug 22, 2020
1b70cf3
0.47.22
huan Aug 22, 2020
06bcf10
feat: add more methods into contact class (#2048)
windmemory Aug 22, 2020
491a7c5
throw a nice error message when we call user module before start wechaty
huan Aug 22, 2020
cf560a5
0.47.24
huan Aug 22, 2020
68c1c60
0.48.0 (#2050)
windmemory Aug 23, 2020
37f0414
bump hostie version to be the stable one (#2051)
windmemory Aug 24, 2020
2beef18
link images to wechaty.js.org
huan Aug 24, 2020
fc0838e
update links
huan Aug 24, 2020
c8a1550
Merge branch 'master' of github.com:Chatie/wechaty
huan Aug 24, 2020
2fe44b8
0.48.2
huan Aug 24, 2020
159c5be
update jsdocs
huan Aug 24, 2020
4ea5562
0.48.3
huan Aug 24, 2020
f1bab91
add gitter puppet
huan Aug 27, 2020
7c2caaf
0.48.4
huan Aug 27, 2020
407a592
fix typo
huan Aug 27, 2020
4c7464a
0.48.5
huan Aug 27, 2020
cec5b84
add location user module
huan Aug 29, 2020
630e0ed
0.47.25
huan Aug 29, 2020
933b81f
merge
huan Aug 29, 2020
2c1f138
0.48.6
huan Aug 29, 2020
d25cd62
clean
huan Sep 1, 2020
11256c3
Merge branch 'master' of github.com:Chatie/wechaty
huan Sep 1, 2020
9aeb8df
0.48.7
huan Sep 1, 2020
113b0ad
add telegram channel for wechaty
huan Sep 1, 2020
34a7b7f
0.48.8
huan Sep 1, 2020
d0f8188
add bibtex cite code
huan Sep 2, 2020
cc08e80
0.48.9
huan Sep 2, 2020
73d7e65
add star history badge
huan Sep 2, 2020
8f137aa
0.48.10
huan Sep 2, 2020
3c338f5
Split to trunks when making requests of room.findAll() and room.ready…
windmemory Sep 28, 2020
8a41a64
fix #2073 (#2074)
windmemory Oct 6, 2020
19a7d25
Bump minor 49 (#2078)
windmemory Oct 27, 2020
5168f67
fix io client qrcode by encodeURIComponent
huan Oct 27, 2020
b5a4a21
0.48.11
huan Oct 27, 2020
a5fdf6c
merge
huan Oct 27, 2020
86ee89f
upgrade deps
huan Oct 27, 2020
1257871
0.49.1
huan Oct 27, 2020
7468db4
upgrade puppet to v0.33
huan Oct 27, 2020
40ed32f
0.49.2
huan Oct 27, 2020
5505b64
0.49.3
huan Oct 27, 2020
12aa893
0.49.4
huan Oct 27, 2020
f0cd305
fix typos
huan Oct 28, 2020
5e65c85
0.49.5
huan Oct 28, 2020
af42df1
clean
huan Nov 1, 2020
1bae900
Update README.md
huan Nov 6, 2020
c9b68ec
add credit link
huan Nov 7, 2020
d10d7ed
fix typo
huan Nov 7, 2020
36baaa6
upgrade json-rpc-peer to v0.17
huan Nov 7, 2020
7f9adf5
0.49.7
huan Nov 7, 2020
ec60a4f
Merge branch 'master' of github.com:Chatie/wechaty
huan Nov 7, 2020
dcf93fd
0.49.8
huan Nov 7, 2020
225ce70
Update Dockerfile (#2079)
Nov 7, 2020
ace23d3
0.50.0
huan Nov 9, 2020
8f1a4d1
0.50.1
huan Nov 9, 2020
7fd8c3e
clean scan payload after login
huan Nov 9, 2020
fb341ee
0.50.2
huan Nov 9, 2020
81e4fc8
enable io sync message botie support
huan Nov 9, 2020
df89f8b
0.50.3
huan Nov 9, 2020
7cb4696
use source for botie payload
huan Nov 9, 2020
d700a9a
0.50.4
huan Nov 9, 2020
c9f5bf7
add whatsapp to official puppet names (https://github.com/wechaty/wec…
huan Nov 12, 2020
7e97620
0.50.5
huan Nov 12, 2020
05c0041
use a helper function for better FileBox instance check (https://gith…
huan Nov 13, 2020
a7b367c
0.50.6
huan Nov 13, 2020
2e951b7
loost Puppet instance type checking (#2024)
huan Nov 13, 2020
70fff82
0.50.7
huan Nov 13, 2020
0d2ff03
create looseInstanceOfClass (#2090) (#2091)
huan Nov 19, 2020
1c24722
fix file-box
huan Nov 20, 2020
9a824a7
fix file-box
huan Nov 20, 2020
b22d0f3
0.51.2
huan Nov 20, 2020
6c36d66
rename from -> talker (#2094)
huan Nov 23, 2020
a5d1e5a
0.51.3
huan Nov 23, 2020
7b84e52
add gitter & deprecate padplus
huan Nov 24, 2020
b2288fa
strict typing check for typescript v4
huan Nov 24, 2020
f4febd8
0.51.4
huan Nov 24, 2020
0bc28e2
Update contact.ts (#2095)
su-chang Nov 25, 2020
e1e3433
rename from() to talker() from message
huan Nov 27, 2020
30c446b
0.51.5
huan Nov 27, 2020
c750200
Update README.md
lijiarui Dec 4, 2020
c202ba2
Update README.md
lijiarui Dec 4, 2020
116d947
Update README.md
lijiarui Dec 4, 2020
b790000
Update README.md
lijiarui Dec 4, 2020
afbf119
add wechaty-puppet-padlocal to the puppet config (#2102)
huan Dec 6, 2020
34ff3e0
0.51.6
huan Dec 6, 2020
197964e
Merge branch 'master' of github.com:Chatie/wechaty
huan Dec 6, 2020
60b5229
0.51.7
huan Dec 6, 2020
66f8958
remove padplus from smoke testing (#2087)
huan Dec 6, 2020
d3bd69b
0.51.8
huan Dec 6, 2020
141da77
add url link unit test
huan Dec 7, 2020
1c08782
0.51.9
huan Dec 7, 2020
2c5b46c
add strict check
huan Dec 7, 2020
d09067b
clean
huan Dec 7, 2020
113db88
0.51.10
huan Dec 7, 2020
44afa00
Update room-invitation.ts (#2104)
profthecopyright Dec 9, 2020
bbc2db1
add puppet event to emitter typing
huan Dec 16, 2020
068f670
0.51.11
huan Dec 16, 2020
f0ff912
add puppet to wechaty event names
huan Dec 16, 2020
cc0247f
Working on RxJS related deps
huan Dec 17, 2020
7ad1a40
0.53.1
huan Dec 17, 2020
f33566e
Rename NODE_AUTH_TOKEN -> NPM_TOKEN
huan Dec 17, 2020
795ccc5
Use Debian instead of Ubuntu for our Docker (#2114)
huan Jan 7, 2021
8ac9f6d
0.53.2
huan Jan 7, 2021
152c594
Update Node.js v12 -> v14 (#2115)
huan Jan 7, 2021
55e54c8
0.53.3
huan Jan 7, 2021
7e62792
RPA SDK
huan Jan 7, 2021
9486202
RPA SDK
huan Jan 7, 2021
042d45b
use cache to speed up github action
huan Jan 7, 2021
7ca7199
Merge branch 'master' of github.com:wechaty/wechaty
huan Jan 7, 2021
86f9c7e
use cache for node & npm
huan Jan 7, 2021
b1de871
0.53.4
huan Jan 7, 2021
04d3967
node v15 not support grpc yet
huan Jan 7, 2021
b12d5dc
0.53.5
huan Jan 7, 2021
2961fd4
Update package.json
huan Jan 8, 2021
3b7b45d
Upgrade pkg-jq
huan Jan 8, 2021
fc14c45
use better cache for gh actions
huan Jan 11, 2021
5be704e
0.53.6
huan Jan 11, 2021
1754fd5
merge
huan Jan 11, 2021
548c075
0.53.7
huan Jan 11, 2021
a68f155
Update README.md (#2118)
lijiarui Jan 15, 2021
db7beb2
use naive hashFile
huan Jan 15, 2021
d107fb9
0.53.8
huan Jan 15, 2021
c1d871c
fix typo
huan Jan 15, 2021
9cd4fdd
0.53.9
huan Jan 15, 2021
584e3e5
rename wechaty-puppet-hostie -> wechaty-puppet-service (#2124)
huan Jan 23, 2021
023f525
add deprecate warning message for WECHATY_HOSTIE_PORT (#2122)
huan Jan 23, 2021
1c1d12f
0.55.1
huan Jan 23, 2021
78d05a2
0.56.0
huan Jan 25, 2021
3a4ccdc
0.56.1
huan Jan 25, 2021
7763d20
Changelog for v0.56
huan Jan 25, 2021
a2ff203
compatible with wechaty-puppet-hostie module name (https://github.com…
huan Jan 27, 2021
6ae5b0d
0.56.2
huan Jan 27, 2021
aba17d0
use node v12 instead of v14 in docker image for maximum compatibility…
huan Jan 27, 2021
9ebc5f4
0.56.3
huan Jan 27, 2021
16b8b25
0.57.0
huan Jan 28, 2021
7456d74
default puppet: service (#2127)
huan Jan 28, 2021
59d22b8
0.57.1
huan Jan 28, 2021
a2fdb0f
upgrade wechaty-puppet to v0.34
huan Jan 29, 2021
2a8689a
0.57.2
huan Jan 29, 2021
d1f7191
change default puppet to puppet-service
huan Jan 29, 2021
c33f4e7
0.57.3
huan Jan 29, 2021
ba80fe5
upgrade deps
huan Feb 2, 2021
a0963e6
0.57.4
huan Feb 2, 2021
20d8c9c
fix docker deploy for branches
huan Feb 2, 2021
040784c
0.57.5
huan Feb 2, 2021
58b7956
pass custom server host to io server (#2138)
windmemory Feb 8, 2021
8f8ae6a
0.57.6
huan Feb 8, 2021
b4e6ea4
support puppet lark (https://github.com/wechaty/wechaty-puppet-lark/i…
huan Feb 10, 2021
cf172b2
0.57.7
huan Feb 10, 2021
938bfed
clean
huan Feb 10, 2021
f7ec584
0.57.8
huan Feb 10, 2021
695580c
use npm-run-all
huan Feb 12, 2021
5e4b384
0.57.9
huan Feb 12, 2021
c3077fb
specific puppet versions
huan Feb 13, 2021
abe684a
0.57.10
huan Feb 13, 2021
ffea96c
upgrade upppeteer version
huan Feb 20, 2021
5a79c47
0.57.11
huan Feb 20, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- run:
name: Install Node.js
command: |
curl --silent --location https://rpm.nodesource.com/setup_10.x | sudo bash -
curl --silent --location https://rpm.nodesource.com/setup_12.x | sudo bash -
sudo yum -y install nodejs

- run:
Expand Down
3 changes: 1 addition & 2 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@
# https://help.github.com/articles/about-codeowners/
#

/docs/ @lijiarui @hczhcz @TingYinHelen @ax4
/examples/ @Gcaufy @hczhcz
/ @wechaty/contributors
56 changes: 33 additions & 23 deletions .github/ISSUE_TEMPLATE/wechaty-bug-report.md
Original file line number Diff line number Diff line change
@@ -1,61 +1,73 @@
---
name: Wechaty Bug Report
about: Create a bug report for a bug you found in wechaty

---

> Important:Please file the issue follow the template, or we won't help you to solve the problem.

> Important:Please file the issue follow the template, or we won't be able to help you to solve the problem.

## 0. Report Issue Guide

1. Please run the following command and check whether the problem has been fixed:
```
rm -rf package-lock.json
rm -rf node_modules
npm install
```

2. Please search in [FAQ List](https://docs.chatie.io/faq) first, and make sure your problem has not been solved before.
```sh
rm -rf package-lock.json
rm -rf node_modules
npm install
```

2. Please search in [FAQ List](https://wechaty.js.org/faq) first, and make sure your problem has not been solved before.

3. Please search in the issue first, and make sure your problem had not been reported before

## 1. Versions
- What is your wechaty version?

> What is your wechaty version?

Answer:

- Which puppet are you using for wechaty? (padchat/puppeteer/padpro/...)
> Which puppet are you using for wechaty? (puppeteer/padlocal/service...)

Answer:

- What is your wechaty-puppet-XXX(padchat/puppeteer/) version?
> What is your wechaty-puppet-XXX(padchat/puppeteer/) version?

Answer:

- What is your node version? (run `node --version`)
> What is your node version? (run `node --version`)

Answer:

- What os are you using
> What os are you using

Answer:

## 2. Describe the bug
Give a clear and concise description of what the bug is.

> Give a clear and concise description of what the bug is.

## 3. To Reproduce
This part is very important: if you can not provide any reproduce steps, then the problem will be very hard to be recognized.

> This part is very important: if you can not provide any reproduce steps, then the problem will be very hard to be recognized.

**[How to create a Minimal, Reproducible Example](https://stackoverflow.com/help/minimal-reproducible-example)**

Steps to reproduce the behavior:

1. run '...'
2. ...
3. ...

## 4. Expected behavior
Give a clear and concise description of what you expected to happen.

> Give a clear and concise description of what you expected to happen.

## 5. Actual behavior
If applicable, add screenshots to help explain your problem. But do not paste log screenshots here.

> If applicable, add screenshots to help explain your problem. But do not paste log screenshots here.

## 6. Full Output Logs
Set env `WECHATY_LOG=silly` in order to set log level to silly, then we can get the full log (If you dosen't set log env, log level is info as default, we cannot get the full log)

> Set env `WECHATY_LOG=silly` in order to set log level to silly, then we can get the full log (If you dosen't set log env, log level is info as default, we cannot get the full log)

**We need full log instead of log screenshot or log fragments!**

Expand All @@ -67,14 +79,12 @@ Show Logs
```shell
$ WECHATY_LOG=silly node yourbot.js

Question: Paste your FULL(DO NOT ONLY PROVIDE FRAGMENTS) log messages
Answer:
-> PASTE YOUR FULL(DO NOT ONLY PROVIDE FRAGMENTS) LOG MESSAGES HERE

```

</details>

## 7. Additional context
Add any other context about the problem here.

[bug]
> Add any other context about the problem here.
26 changes: 3 additions & 23 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,32 +1,12 @@
## I'm submitting a...

```
[ ] Bug Fix
[ ] Feature
[ ] Other (Refactoring, Added tests, Documentation, ...)
```

## Checklist

- [ ] Commit Messages follow the [Conventional Commits](https://conventionalcommits.org/) pattern
- A feature commit message is prefixed "feat:"
- A bugfix commit message is prefixed "fix:"
- [ ] Tests for the changes have been added

- [ ] CI has been passed. (GitHub actions all turns green)
- [ ] SLA has been signed

## Description

_please describe the changes that you are making_

_for features, please describe how to use the new feature_

_please include a reference to an existing issue, if applicable_


## Does this PR introduce a breaking change?

```
[ ] Yes
[ ] No
```

> please describe the changes that you are making, with the related issue number.
24 changes: 9 additions & 15 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,17 @@ jobs:
- run: ./scripts/docker.sh build
- run: ./scripts/docker.sh test

# https://www.prestonlamb.com/blog/creating-a-docker-image-with-github-actions
publish:
if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/v'))
name: Publish
needs: [build]
if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/v'))
runs-on: ubuntu-latest
steps:
- name: Check Branch
id: check-branch
run: |
if [[ ${{ github.ref }} =~ ^refs/heads/(master|v[0-9]+\.[0-9]+.*)$ ]]; then
echo ::set-output name=match::true
fi # See: https://stackoverflow.com/a/58869470/1123955
- name: Is A Publish Branch
if: steps.check-branch.outputs.match == 'true'
run: curl -X POST -d '{"from":"GitHub Action"}' "$DOCKER_REBUILD_URL"
env:
DOCKER_REBUILD_URL: ${{ secrets.DOCKER_REBUILD_URL }}
- name: Is Not A Publish Branch
if: steps.check-branch.outputs.match != 'true'
run: echo 'Not A Publish Branch'
- uses: actions/checkout@v2
- name: Build the Docker image
run: ./scripts/docker.sh build
- name: Login to DockerHub Registry
run: echo ${{ secrets.DOCKER_PERSONAL_ACCESS_TOKEN }} | docker login -u zixia --password-stdin
- name: Deploy to Docker Hub
run: ./scripts/docker.sh deploy
37 changes: 37 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
node-version: [14]
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-wechaty-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-wechaty-

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run build --if-present
- run: npm test
env:
CI: true
51 changes: 36 additions & 15 deletions .github/workflows/npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,20 @@ on: [push, pull_request]
jobs:
build:
name: Build
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
node: [12, 13]

runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
- uses: actions/cache@v2
with:
node-version: ${{ matrix.node-version }}
path: ~/.npm
key: ${{ runner.os }}-wechaty-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-wechaty-

- name: Use Node.js 15
uses: actions/setup-node@v2
with:
node-version: 15
- name: Install Dependencies
run: npm install

Expand All @@ -30,9 +31,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-wechaty-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-wechaty-

- uses: actions/setup-node@v2
with:
node-version: 13
node-version: 15
- run: npm install
- run: ./scripts/generate-version.sh
- run: ./scripts/npm-pack-testing.sh
Expand All @@ -46,9 +54,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-wechaty-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-wechaty-

- uses: actions/setup-node@v2
with:
node-version: 13
node-version: 15
registry-url: https://registry.npmjs.org/
- run: npm install
- run: ./scripts/generate-version.sh
Expand All @@ -63,9 +78,15 @@ jobs:
fi # See: https://stackoverflow.com/a/58869470/1123955
- name: Is A Publish Branch
if: steps.check-branch.outputs.match == 'true'
run: npm publish
run: |
NAME=$(npx pkg-jq -r .name)
VERSION=$(npx pkg-jq -r .version)
if npx version-exists "$NAME" "$VERSION"
then echo "$NAME@$VERSION exists on NPM, skipped."
else npm publish
fi
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Is Not A Publish Branch
if: steps.check-branch.outputs.match != 'true'
run: echo 'Not A Publish Branch'
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ yarn.lock
.yarn-cache/
.v8flags.*

# why? forgot... 2017-05-18 by zixia
# why? forgot... 2017-05-18 by huan
/tests/fixtures/docker/package.json

tags
Expand Down
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docs/
3 changes: 3 additions & 0 deletions .nycrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"reporter": ["lcov", "text-summary"]
}
26 changes: 26 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,30 @@
"javascript",
"typescript",
],
"cSpell.words": [
"Gitter",
"Wechaty",
"appid",
"botie",
"huan",
"ioscat",
"ipad",
"lcov",
"lijiarui",
"logonoff",
"padchat",
"padplus",
"padpro",
"pagepath",
"portfinder",
"qrcode",
"removee",
"ruirui",
"thumbnailurl",
"wechat",
"weixin",
"wxwork",
"zbeekman",
"zixia"
],
}
2 changes: 1 addition & 1 deletion AUTHORS
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Huan <zixia@zixia.net> https://github.com/zixia
Huan <zixia@zixia.net> https://github.com/huan
Rui <ruiruibupt@gmail.com> https://github.com/lijiarui
Loading