Add npmrc, update version, pipeline tweaks - re-enable pipeline in full
Some checks are pending
continuous-integration/drone/push Build is running
Some checks are pending
continuous-integration/drone/push Build is running
This commit is contained in:
158
.drone.yml
158
.drone.yml
@@ -1,96 +1,96 @@
|
|||||||
# kind: pipeline
|
kind: pipeline
|
||||||
# type: docker
|
type: docker
|
||||||
# name: Test Pipeline
|
name: Test Pipeline
|
||||||
|
|
||||||
# workspace:
|
workspace:
|
||||||
# path: /drone/grow
|
path: /drone/grow
|
||||||
|
|
||||||
# steps:
|
steps:
|
||||||
# - name: yarn install
|
- name: yarn install
|
||||||
# image: node:latest
|
image: node:latest
|
||||||
# commands:
|
commands:
|
||||||
# - yarn install
|
- yarn install
|
||||||
|
|
||||||
# - name: Code Style Checks
|
- name: Code Style Checks
|
||||||
# image: node:latest
|
image: node:latest
|
||||||
# commands:
|
commands:
|
||||||
# - yarn prettier
|
- yarn prettier
|
||||||
|
|
||||||
# - name: Lint
|
- name: Lint
|
||||||
# image: node:latest
|
image: node:latest
|
||||||
# commands:
|
commands:
|
||||||
# - yarn lint
|
- yarn lint
|
||||||
|
|
||||||
# - name: Unit Tests
|
- name: Unit Tests
|
||||||
# image: node:latest
|
image: node:latest
|
||||||
# commands:
|
commands:
|
||||||
# - yarn test
|
- yarn test
|
||||||
|
|
||||||
# - name: Send Status Notification
|
- name: Send Status Notification
|
||||||
# image: plugins/webhook
|
image: plugins/webhook
|
||||||
# settings:
|
settings:
|
||||||
# urls: https://lab.mifi.dev/hooks/9p65zpagctgkmndo8nwwm4199r
|
urls: https://lab.mifi.dev/hooks/9p65zpagctgkmndo8nwwm4199r
|
||||||
# content_type: application/json
|
content_type: application/json
|
||||||
# template: |
|
template: |
|
||||||
# {
|
{
|
||||||
# "icon_url":"https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/120/apple/198/freezing-face_1f976.png",
|
"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}}",
|
"text": "[{{ repo.name }} - Build # {{ build.number }}] Code Quality Checks {{ build.status }} {{#success build.status}}:tada:{{else}}:poop:{{/success}}",
|
||||||
# "username":"DroneBot"
|
"username":"DroneBot"
|
||||||
# }
|
}
|
||||||
# when:
|
when:
|
||||||
# status:
|
status:
|
||||||
# - success
|
- success
|
||||||
# - failure
|
- failure
|
||||||
|
|
||||||
# trigger:
|
trigger:
|
||||||
# event:
|
event:
|
||||||
# - push
|
- push
|
||||||
|
|
||||||
# ---
|
---
|
||||||
# kind: pipeline
|
kind: pipeline
|
||||||
# type: docker
|
type: docker
|
||||||
# name: Build Pipeline
|
name: Build Pipeline
|
||||||
|
|
||||||
# workspace:
|
workspace:
|
||||||
# path: /drone/grow
|
path: /drone/grow
|
||||||
|
|
||||||
# steps:
|
steps:
|
||||||
# - name: yarn install
|
- name: yarn install
|
||||||
# image: node:latest
|
image: node:latest
|
||||||
# commands:
|
commands:
|
||||||
# - yarn install
|
- yarn install
|
||||||
|
|
||||||
# - name: Build
|
- name: Build
|
||||||
# image: node:latest
|
image: node:latest
|
||||||
# commands:
|
commands:
|
||||||
# - yarn build
|
- yarn build
|
||||||
|
|
||||||
# - name: Send Status Notifications
|
- name: Send Status Notifications
|
||||||
# image: plugins/webhook
|
image: plugins/webhook
|
||||||
# settings:
|
settings:
|
||||||
# urls: https://lab.mifi.dev/hooks/ccw34hdf7tgbjmzp96nptn938r
|
urls: https://lab.mifi.dev/hooks/ccw34hdf7tgbjmzp96nptn938r
|
||||||
# content_type: application/json
|
content_type: application/json
|
||||||
# template: |
|
template: |
|
||||||
# {
|
{
|
||||||
# "icon_url":"https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/120/apple/198/freezing-face_1f976.png",
|
"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 }}] Build package {{ build.status }} {{#success build.status}}:tada:{{else}}:poop:{{/success}}",
|
"text": "[{{ repo.name }} - Build # {{ build.number }}] Build package {{ build.status }} {{#success build.status}}:tada:{{else}}:poop:{{/success}}",
|
||||||
# "username":"DroneBot"
|
"username":"DroneBot"
|
||||||
# }
|
}
|
||||||
# when:
|
when:
|
||||||
# status:
|
status:
|
||||||
# - success
|
- success
|
||||||
# - failure
|
- failure
|
||||||
|
|
||||||
# depends_on:
|
depends_on:
|
||||||
# - Test Pipeline
|
- Test Pipeline
|
||||||
|
|
||||||
# trigger:
|
trigger:
|
||||||
# branch:
|
branch:
|
||||||
# - main
|
- main
|
||||||
# event:
|
event:
|
||||||
# - push
|
- push
|
||||||
|
|
||||||
# ---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: Publish Pipeline
|
name: Publish Pipeline
|
||||||
@@ -118,7 +118,6 @@ steps:
|
|||||||
- from_secret: gitea_token
|
- from_secret: gitea_token
|
||||||
volumes:
|
volumes:
|
||||||
- name: yarnrc
|
- name: yarnrc
|
||||||
path: /drone/grow/.yarnrc.yml
|
|
||||||
- name: Report NPM Publish Status
|
- name: Report NPM Publish Status
|
||||||
image: plugins/webhook
|
image: plugins/webhook
|
||||||
settings:
|
settings:
|
||||||
@@ -140,6 +139,7 @@ steps:
|
|||||||
auto_tag: true
|
auto_tag: true
|
||||||
squash: true
|
squash: true
|
||||||
repo: git.mifi.dev/mifi/auth
|
repo: git.mifi.dev/mifi/auth
|
||||||
|
context: mifi
|
||||||
registry: git.mifi.dev
|
registry: git.mifi.dev
|
||||||
username:
|
username:
|
||||||
from_secret: registry_username
|
from_secret: registry_username
|
||||||
|
|||||||
3
.npmrc
Normal file
3
.npmrc
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
@mifi:registry=https://git.mifi.dev/api/packages/mifi/npm
|
||||||
|
//git.mifi.dev/api/packages/mifi/npm/:_authToken=${REGISTRY_TOKEN}
|
||||||
|
@mifi/grow:registry=https://git.mifi.dev
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@mifi/auth",
|
"name": "@mifi/auth",
|
||||||
"version": "0.0.7",
|
"version": "0.0.8",
|
||||||
"author": "mifi (Mike Fitzpatrick)",
|
"author": "mifi (Mike Fitzpatrick)",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user