Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Commit 34fa690

Browse files
committed
chore: add github actions
1 parent d7e1019 commit 34fa690

File tree

2 files changed

+40
-3
lines changed

2 files changed

+40
-3
lines changed

.github/workflows/node.js.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+
name: Node.js CI
5+
6+
on:
7+
push:
8+
branches: [main]
9+
pull_request:
10+
branches: [main]
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
matrix:
18+
node-version: [12.x, 14.x]
19+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
20+
21+
steps:
22+
- uses: actions/checkout@v2
23+
- name: Use Node.js ${{ matrix.node-version }}
24+
uses: actions/setup-node@v2
25+
with:
26+
node-version: ${{ matrix.node-version }}
27+
- run: yarn install --frozen-lockfile
28+
- run: yarn test

package.json

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,20 @@
11
{
22
"name": "@canva/dependency-tree",
3-
"version": "2.4.2",
3+
"version": "2.4.3",
44
"description": "Calculates a dependency tree for set of files",
55
"main": "dist/index.js",
66
"author": "Canva Pty Ltd",
77
"license": "MIT",
8+
"repository": {
9+
"type": "git",
10+
"url": "git+ssh://[email protected]/Canva/depdendency-tree-public.git"
11+
},
12+
"keywords": [
13+
"dependency",
14+
"deps",
15+
"tree",
16+
"graph"
17+
],
818
"scripts": {
919
"prettier": "prettier --write .",
1020
"prepare": "rimraf dist/ && tsc",
@@ -54,7 +64,6 @@
5464
},
5565
"typings": "dist/index.d.ts",
5666
"engines": {
57-
"node": ">=12.13.1 < 13",
58-
"yarn": ">=1.13.0"
67+
"node": "12.x || 14.x"
5968
}
6069
}

0 commit comments

Comments
 (0)