Skip to content

Commit 7c130f6

Browse files
committed
fix(): publish action
1 parent 22ba62b commit 7c130f6

18 files changed

+70
-39
lines changed

.github/workflows/publisher.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Publish Package to npmjs
2+
on:
3+
release:
4+
types: [created]
5+
jobs:
6+
npm-publish:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- uses: actions/setup-node@v2
11+
with:
12+
node-version: '16.x'
13+
registry-url: 'https://registry.npmjs.org'
14+
- run: npm ci
15+
- run: npm run publish:npm
16+
env:
17+
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH }}

lib/channels/fcm/firebase-cloud-messaging-channel.interface.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { NestJsNotify } from "../../interfaces";
1+
import { NestJsNotify } from '../../interfaces';
22

33
export interface IFirebaseCloudMessagingChannel extends NestJsNotify {
44
/**
Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
1-
import { Injectable } from "@nestjs/common";
2-
import { INestjsNotifyChannel } from "../../interfaces";
3-
import { IFirebaseCloudMessagingChannel } from "./firebase-cloud-messaging-channel.interface";
1+
import { Injectable } from '@nestjs/common';
2+
import { INestjsNotifyChannel } from '../../interfaces';
3+
import { IFirebaseCloudMessagingChannel } from './firebase-cloud-messaging-channel.interface';
44

55
@Injectable()
66
export class FirebaseCloudMessagingChannel implements INestjsNotifyChannel {
77
constructor() {
88
//
99
}
1010

11-
public async send(notification: IFirebaseCloudMessagingChannel): Promise<any> {
11+
public async send(
12+
notification: IFirebaseCloudMessagingChannel,
13+
): Promise<any> {
1214
return Promise.resolve(undefined);
1315
}
1416
}

lib/channels/nexmo/nexmo.channel.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { Injectable } from "@nestjs/common";
2-
import { INestjsNotifyChannel } from "../../interfaces";
1+
import { Injectable } from '@nestjs/common';
2+
import { INestjsNotifyChannel } from '../../interfaces';
33

44
@Injectable()
55
export class NexmoChannel implements INestjsNotifyChannel {

lib/channels/sendgrid/sendgrid.channel.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { Injectable } from "@nestjs/common";
2-
import { INestjsNotifyChannel } from "../../interfaces";
1+
import { Injectable } from '@nestjs/common';
2+
import { INestjsNotifyChannel } from '../../interfaces';
33

44
@Injectable()
55
export class SendgridChannel implements INestjsNotifyChannel {

lib/channels/slack/slack.channel.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { Injectable } from "@nestjs/common";
2-
import { INestjsNotifyChannel } from "../../interfaces";
1+
import { Injectable } from '@nestjs/common';
2+
import { INestjsNotifyChannel } from '../../interfaces';
33

44
@Injectable()
55
export class SlackChannel implements INestjsNotifyChannel {

lib/channels/telegram/telegram-channel.interface.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { NestJsNotify } from "../../interfaces";
1+
import { NestJsNotify } from '../../interfaces';
22

33
/** Telegram channel model
44
* @interface ITelegramChannel

lib/channels/telegram/telegram.channel.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { Injectable } from "@nestjs/common";
2-
import { INestjsNotifyChannel } from "../../interfaces";
3-
import { ITelegramChannel } from "./telegram-channel.interface";
1+
import { Injectable } from '@nestjs/common';
2+
import { INestjsNotifyChannel } from '../../interfaces';
3+
import { ITelegramChannel } from './telegram-channel.interface';
44

55
@Injectable()
66
export class TelegramChannel implements INestjsNotifyChannel {

lib/channels/twilio/twilio.channel.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { Injectable } from "@nestjs/common";
2-
import { INestjsNotifyChannel } from "../../interfaces";
1+
import { Injectable } from '@nestjs/common';
2+
import { INestjsNotifyChannel } from '../../interfaces';
33

44
@Injectable()
55
export class TwilioChannel implements INestjsNotifyChannel {

lib/channels/twitter/twitter.channel.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { Injectable } from "@nestjs/common";
2-
import { INestjsNotifyChannel } from "../../interfaces";
1+
import { Injectable } from '@nestjs/common';
2+
import { INestjsNotifyChannel } from '../../interfaces';
33

44
@Injectable()
55
export class TwitterChannel implements INestjsNotifyChannel {

0 commit comments

Comments
 (0)