Skip to content

Commit 36c7e42

Browse files
authored
Merge pull request #33 from hackmdio/master
merge Master into develop
2 parents 75dcf4d + a9d95a6 commit 36c7e42

File tree

3 files changed

+42
-3
lines changed

3 files changed

+42
-3
lines changed

.github/workflows/ci.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Node.js CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Set up Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: '20'
20+
cache: 'npm'
21+
cache-dependency-path: nodejs/package-lock.json
22+
23+
- name: Install dependencies
24+
working-directory: nodejs
25+
run: npm ci
26+
27+
- name: Run lint
28+
working-directory: nodejs
29+
run: npm run lint
30+
31+
- name: Build
32+
working-directory: nodejs
33+
run: npm run build
34+
35+
- name: Run tests
36+
working-directory: nodejs
37+
env:
38+
HACKMD_ACCESS_TOKEN: "test_token_123456789"
39+
run: npm test

nodejs/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nodejs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@hackmd/api",
3-
"version": "2.3.0",
3+
"version": "2.4.0",
44
"description": "HackMD Node.js API Client",
55
"main": "dist/index.js",
66
"declaration": "./dist/index.d.ts",

0 commit comments

Comments
 (0)