Compare commits
2 Commits
1.0.0
...
a475678dfa
| Author | SHA1 | Date | |
|---|---|---|---|
|
a475678dfa
|
|||
|
e1f5bb67fd
|
91
.drone.yml
Normal file
91
.drone.yml
Normal file
@@ -0,0 +1,91 @@
|
|||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: Test Pipeline
|
||||||
|
|
||||||
|
workspace:
|
||||||
|
path: /drone/auth
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: yarn install
|
||||||
|
image: node:latest
|
||||||
|
commands:
|
||||||
|
- yarn install
|
||||||
|
- name: Code Style Checks
|
||||||
|
image: node:latest
|
||||||
|
commands:
|
||||||
|
- yarn prettier
|
||||||
|
- name: Lint
|
||||||
|
image: node:latest
|
||||||
|
commands:
|
||||||
|
- yarn lint
|
||||||
|
- name: Unit Tests
|
||||||
|
image: node:latest
|
||||||
|
commands:
|
||||||
|
- yarn test
|
||||||
|
- name: Send Test Status Notification
|
||||||
|
image: plugins/webhook
|
||||||
|
settings:
|
||||||
|
urls: https://lab.mifi.dev/hooks/9p65zpagctgkmndo8nwwm4199r
|
||||||
|
content_type: application/json
|
||||||
|
template: |
|
||||||
|
{
|
||||||
|
"icon_url":"https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/120/apple/198/freezing-face_1f976.png",
|
||||||
|
"text": "[{{ repo.name }} - Build # {{ build.number }}] Code Quality Checks {{ build.status }} {{#success build.status}}:tada:{{else}}:poop:{{/success}}",
|
||||||
|
"username":"DroneBot"
|
||||||
|
}
|
||||||
|
when:
|
||||||
|
status:
|
||||||
|
- success
|
||||||
|
- failure
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
- main
|
||||||
|
- develop
|
||||||
|
event:
|
||||||
|
- pull_request
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: Publish Pipeline
|
||||||
|
|
||||||
|
workspace:
|
||||||
|
path: /drone/auth
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Publish NPM
|
||||||
|
image: node:20-alpine
|
||||||
|
failure: ignore
|
||||||
|
commands:
|
||||||
|
- yarn publish -t ${DRONE_TAG}
|
||||||
|
volumes:
|
||||||
|
- name: npmrc
|
||||||
|
path: /drone/auth/.npmrc
|
||||||
|
- name: Report NPM Publish Status
|
||||||
|
image: plugins/webhook
|
||||||
|
settings:
|
||||||
|
urls: https://lab.mifi.dev/hooks/ccw34hdf7tgbjmzp96nptn938r
|
||||||
|
content_type: application/json
|
||||||
|
template: |
|
||||||
|
{
|
||||||
|
"icon_url":"https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/120/apple/198/freezing-face_1f976.png",
|
||||||
|
"text": "[{{ repo.name }} - New npm package release {{tag}} from # {{ build.number }}] Deploy {{ build.status }} {{#success build.status}}:tada:{{else}}:poop:{{/success}}",
|
||||||
|
"username":"DroneBot"
|
||||||
|
}
|
||||||
|
when:
|
||||||
|
status:
|
||||||
|
- success
|
||||||
|
- failure
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: npmrc
|
||||||
|
host:
|
||||||
|
path: /volume1/docker/beethoven/labs-auth/.npmrc
|
||||||
|
|
||||||
|
depends_on:
|
||||||
|
- Test Pipeline
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
event:
|
||||||
|
- tag
|
||||||
1
.yarnrc.yml
Normal file
1
.yarnrc.yml
Normal file
@@ -0,0 +1 @@
|
|||||||
|
nodeLinker: node-modules
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@mifi/services-common",
|
"name": "@mifi/services-common",
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"author": "mifi (Mike Fitzpatrick)",
|
"author": "mifi (Mike Fitzpatrick)",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@@ -15,9 +15,9 @@
|
|||||||
"@babel/core": "^7.21.8",
|
"@babel/core": "^7.21.8",
|
||||||
"@babel/preset-env": "^7.21.5",
|
"@babel/preset-env": "^7.21.5",
|
||||||
"@babel/preset-typescript": "^7.21.5",
|
"@babel/preset-typescript": "^7.21.5",
|
||||||
"@tsconfig/node16": "^1.0.3",
|
"@tsconfig/node16": "^1.0.4",
|
||||||
"@types/jest": "^29.5.1",
|
"@types/jest": "^29.5.1",
|
||||||
"@types/node": "^18.14.0",
|
"@types/node": "^20.2.3",
|
||||||
"@typescript-eslint/eslint-plugin": "^5.59.2",
|
"@typescript-eslint/eslint-plugin": "^5.59.2",
|
||||||
"@typescript-eslint/parser": "^5.59.2",
|
"@typescript-eslint/parser": "^5.59.2",
|
||||||
"babel-jest": "^29.5.0",
|
"babel-jest": "^29.5.0",
|
||||||
|
|||||||
15
yarn.lock
15
yarn.lock
@@ -1762,9 +1762,9 @@ __metadata:
|
|||||||
"@babel/core": ^7.21.8
|
"@babel/core": ^7.21.8
|
||||||
"@babel/preset-env": ^7.21.5
|
"@babel/preset-env": ^7.21.5
|
||||||
"@babel/preset-typescript": ^7.21.5
|
"@babel/preset-typescript": ^7.21.5
|
||||||
"@tsconfig/node16": ^1.0.3
|
"@tsconfig/node16": ^1.0.4
|
||||||
"@types/jest": ^29.5.1
|
"@types/jest": ^29.5.1
|
||||||
"@types/node": ^18.14.0
|
"@types/node": ^20.2.3
|
||||||
"@typescript-eslint/eslint-plugin": ^5.59.2
|
"@typescript-eslint/eslint-plugin": ^5.59.2
|
||||||
"@typescript-eslint/parser": ^5.59.2
|
"@typescript-eslint/parser": ^5.59.2
|
||||||
babel-jest: ^29.5.0
|
babel-jest: ^29.5.0
|
||||||
@@ -1898,7 +1898,7 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"@tsconfig/node16@npm:^1.0.3":
|
"@tsconfig/node16@npm:^1.0.4":
|
||||||
version: 1.0.4
|
version: 1.0.4
|
||||||
resolution: "@tsconfig/node16@npm:1.0.4"
|
resolution: "@tsconfig/node16@npm:1.0.4"
|
||||||
checksum: 202319785901f942a6e1e476b872d421baec20cf09f4b266a1854060efbf78cde16a4d256e8bc949d31e6cd9a90f1e8ef8fb06af96a65e98338a2b6b0de0a0ff
|
checksum: 202319785901f942a6e1e476b872d421baec20cf09f4b266a1854060efbf78cde16a4d256e8bc949d31e6cd9a90f1e8ef8fb06af96a65e98338a2b6b0de0a0ff
|
||||||
@@ -2021,20 +2021,13 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"@types/node@npm:*":
|
"@types/node@npm:*, @types/node@npm:^20.2.3":
|
||||||
version: 20.2.3
|
version: 20.2.3
|
||||||
resolution: "@types/node@npm:20.2.3"
|
resolution: "@types/node@npm:20.2.3"
|
||||||
checksum: 576065e8fc1fa45798c8f59a6bf809169582d04abc2e25fab1a048ffc734975b9992ae31be0d960cf705a21fb37112f7fcde11aa322beddf7491e73d5a5a988c
|
checksum: 576065e8fc1fa45798c8f59a6bf809169582d04abc2e25fab1a048ffc734975b9992ae31be0d960cf705a21fb37112f7fcde11aa322beddf7491e73d5a5a988c
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"@types/node@npm:^18.14.0":
|
|
||||||
version: 18.16.14
|
|
||||||
resolution: "@types/node@npm:18.16.14"
|
|
||||||
checksum: c11cb3c787236414efe58240ae71854971592554d82ff9d201876ce7cafd51c37aaa001c63602d002e8238614d7331bd6d48ac4c1c0caa826799980b6846fb08
|
|
||||||
languageName: node
|
|
||||||
linkType: hard
|
|
||||||
|
|
||||||
"@types/prettier@npm:^2.1.5, @types/prettier@npm:^2.6.0":
|
"@types/prettier@npm:^2.1.5, @types/prettier@npm:^2.6.0":
|
||||||
version: 2.7.2
|
version: 2.7.2
|
||||||
resolution: "@types/prettier@npm:2.7.2"
|
resolution: "@types/prettier@npm:2.7.2"
|
||||||
|
|||||||
Reference in New Issue
Block a user