Skip to content

Commit 993db3a

Browse files
authored
Merge pull request #30 from get-convex/ian/workpool
Use Workpool for actions: enables retries & parallelism limits
2 parents b3097e2 + 3f97e00 commit 993db3a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+3633
-1865
lines changed

.github/workflows/node.js.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Run tests
2+
on:
3+
push:
4+
branches: ["main"]
5+
pull_request:
6+
branches: ["main"]
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- name: Use Node.js
13+
uses: actions/setup-node@v4
14+
- run: npm i
15+
- run: npm ci
16+
- run: cd example && npm i && cd ..
17+
- run: npm run typecheck
18+
- run: cd example && npm run lint && cd ..
19+
- run: npm test

CONTRIBUTING.md

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Developing guide
2+
3+
## Running locally
4+
5+
```sh
6+
npm i
7+
cd example
8+
npm i
9+
npx convex dev
10+
```
11+
12+
## Testing
13+
14+
```sh
15+
rm -rf dist/ && npm run build
16+
npm run typecheck
17+
npm run test
18+
cd example
19+
npm run lint
20+
cd ..
21+
```
22+
23+
## Deploying
24+
25+
### Building a one-off package
26+
27+
```sh
28+
rm -rf dist/ && npm run build
29+
npm pack
30+
```
31+
32+
### Deploying a new version
33+
34+
```sh
35+
# this will change the version and commit it (if you run it in the root directory)
36+
npm version patch
37+
npm publish --dry-run
38+
# sanity check files being included
39+
npm publish
40+
git push --tags
41+
```
42+
43+
#### Alpha release
44+
45+
The same as above, but it requires extra flags so the release is only installed with `@alpha`:
46+
47+
```sh
48+
npm version prerelease --preid alpha
49+
npm publish --tag alpha
50+
```

0 commit comments

Comments
 (0)