Skip to content

Commit

Permalink
ci: set up github actions
Browse files Browse the repository at this point in the history
 - write build, lint task
 - update package.json file
  • Loading branch information
Jaewoook committed Jul 10, 2023
1 parent 217efb4 commit 4e1f5ad
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: "CI"

on:
push:
pull_request:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: "yarn"
node-version-file: ".tool-versions"
- run: yarn build --frozen-lockfile
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: "yarn"
node-version-file: ".tool-versions"
- run: yarn lint
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,14 @@
"version": "1.0.0",
"description": "PDFium wrapper library for JavaScript",
"main": "dist/index.js",
"repository": "git@github.com:Jaewoook/pdfium.js.git",
"repository": {
"type": "git",
"url": "git@github.com:Jaewoook/pdfium.js.git"},
"author": "Jaewook Ahn <dev.jaewook@gmail.com>",
"license": "MIT",
"files": [
"dist"
],
"scripts": {
"build": "tsc",
"lint": "eslint . --ext ts,js",
Expand Down

0 comments on commit 4e1f5ad

Please sign in to comment.