Add npmrc, update version, pipeline tweaks - re-enable pipeline in full
Some checks are pending
continuous-integration/drone/push Build is running

This commit is contained in:
2023-05-04 23:05:49 -04:00
parent 25908dd9d7
commit 695c4d84e8
3 changed files with 83 additions and 80 deletions

View File

@@ -1,96 +1,96 @@
# kind: pipeline
# type: docker
# name: Test Pipeline
kind: pipeline
type: docker
name: Test Pipeline
# workspace:
# path: /drone/grow
workspace:
path: /drone/grow
# steps:
# - name: yarn install
# image: node:latest
# commands:
# - yarn install
steps:
- name: yarn install
image: node:latest
commands:
- yarn install
# - name: Code Style Checks
# image: node:latest
# commands:
# - yarn prettier
- name: Code Style Checks
image: node:latest
commands:
- yarn prettier
# - name: Lint
# image: node:latest
# commands:
# - yarn lint
- name: Lint
image: node:latest
commands:
- yarn lint
# - name: Unit Tests
# image: node:latest
# commands:
# - yarn test
- name: Unit Tests
image: node:latest
commands:
- yarn test
# - name: Send 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
- name: Send 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:
# event:
# - push
trigger:
event:
- push
# ---
# kind: pipeline
# type: docker
# name: Build Pipeline
---
kind: pipeline
type: docker
name: Build Pipeline
# workspace:
# path: /drone/grow
workspace:
path: /drone/grow
# steps:
# - name: yarn install
# image: node:latest
# commands:
# - yarn install
steps:
- name: yarn install
image: node:latest
commands:
- yarn install
# - name: Build
# image: node:latest
# commands:
# - yarn build
- name: Build
image: node:latest
commands:
- yarn build
# - name: Send Status Notifications
# 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 }} - Build # {{ build.number }}] Build package {{ build.status }} {{#success build.status}}:tada:{{else}}:poop:{{/success}}",
# "username":"DroneBot"
# }
# when:
# status:
# - success
# - failure
- name: Send Status Notifications
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 }} - Build # {{ build.number }}] Build package {{ build.status }} {{#success build.status}}:tada:{{else}}:poop:{{/success}}",
"username":"DroneBot"
}
when:
status:
- success
- failure
# depends_on:
# - Test Pipeline
depends_on:
- Test Pipeline
# trigger:
# branch:
# - main
# event:
# - push
trigger:
branch:
- main
event:
- push
# ---
---
kind: pipeline
type: docker
name: Publish Pipeline
@@ -118,7 +118,6 @@ steps:
- from_secret: gitea_token
volumes:
- name: yarnrc
path: /drone/grow/.yarnrc.yml
- name: Report NPM Publish Status
image: plugins/webhook
settings:
@@ -140,6 +139,7 @@ steps:
auto_tag: true
squash: true
repo: git.mifi.dev/mifi/auth
context: mifi
registry: git.mifi.dev
username:
from_secret: registry_username

3
.npmrc Normal file
View 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

View File

@@ -1,6 +1,6 @@
{
"name": "@mifi/auth",
"version": "0.0.7",
"version": "0.0.8",
"author": "mifi (Mike Fitzpatrick)",
"license": "MIT",
"scripts": {