Skip to content

Commit da50e68

Browse files
authored
Merge pull request #15 from SecJS/feat/len-add-secjs-exceptions-ci
feat: Add @secjs/exceptions and CI
2 parents 7a6c607 + 4fddb16 commit da50e68

File tree

11 files changed

+15617
-6505
lines changed

11 files changed

+15617
-6505
lines changed

.github/workflows/cd.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,10 @@ jobs:
2222
registry-url: 'https://registry.npmjs.org'
2323

2424
- name: Download dependencies
25-
run: yarn
26-
27-
- name: Run the tests inside project
28-
run: yarn test
25+
run: npm install
2926

3027
- name: Transpile typescript to javascript
31-
run: yarn build
28+
run: npm run build
3229

3330
- name: Automatic GitHub Release
3431
uses: justincy/github-action-npm-release@2.0.1
@@ -39,4 +36,4 @@ jobs:
3936
if: steps.release.outputs.released == 'true'
4037
env:
4138
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
42-
name: Deploy
39+
name: Deploy

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: CI Utils
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build:
10+
11+
runs-on: ubuntu-18.04
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v2
16+
with:
17+
fetch-depth: 0
18+
19+
- uses: actions/setup-node@v1
20+
with:
21+
node-version: '14.x'
22+
registry-url: 'https://registry.npmjs.org'
23+
24+
- name: Download dependencies
25+
run: npm install
26+
27+
- name: Verify project lint and try to fix it
28+
run: npm run lint:fix
29+
30+
- name: Run the tests from project
31+
run: npm run test

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,15 @@ The intention behind this repository is to always maintain a `Utils` package wit
1919

2020
## Installation
2121

22+
> To use the high potential from @secjs/utils you need to install first this packages from SecJS,
23+
> it keeps as dev dependency because one day @secjs/core will install everything once.
24+
25+
```bash
26+
npm install @secjs/contracts @secjs/exceptions
27+
```
28+
2229
```bash
23-
yarn add @secjs/utils
30+
npm install @secjs/utils
2431
```
2532

2633
## Classes Usage

0 commit comments

Comments
 (0)