@hedia/types 2.1.31-alpha.5 → 2.1.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -38,3 +38,4 @@ jobs:
38
38
  body: |
39
39
  🎉Successfully released alpha version🎉
40
40
  ✅${{ steps.publish-alpha.outputs.version }}✅
41
+
@@ -0,0 +1,37 @@
1
+ name: NPM Publish Bot
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ - master
8
+
9
+ env:
10
+ SSH_PRIVATE_KEY: ${{ secrets.HEDIA_BOT_PRIVATE_SSH_KEY }}
11
+ NPM_TOKEN: ${{ secrets.HEDIA_BOT_NPM_TOKEN }}
12
+
13
+ jobs:
14
+ publish-npm-package:
15
+ runs-on: ubuntu-latest
16
+ steps:
17
+ - uses: actions/checkout@v2
18
+ - uses: actions/setup-node@v2
19
+ with:
20
+ node-version: '14'
21
+ - name: Register ssh keys
22
+ uses: webfactory/ssh-agent@v0.5.3
23
+ with:
24
+ ssh-private-key: ${{ env.SSH_PRIVATE_KEY }}
25
+ - name: Register NPM access token
26
+ run: npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
27
+ - name: Removing alpha tag from package json
28
+ run: chmod +x ./pre-release.sh && ./pre-release.sh
29
+ - id: publish
30
+ uses: JS-DevTools/npm-publish@v1
31
+ with:
32
+ token: ${{ env.NPM_TOKEN }}
33
+
34
+ - if: steps.publish.outputs.type == 'none'
35
+ run: |
36
+ echo "Failed to publish on npm, version already exists"
37
+ exit 1
@@ -0,0 +1,37 @@
1
+ name: Version Check
2
+ on:
3
+ pull_request:
4
+
5
+ env:
6
+ SSH_PRIVATE_KEY: ${{ secrets.HEDIA_BOT_PRIVATE_SSH_KEY }}
7
+ NPM_TOKEN: ${{ secrets.HEDIA_BOT_NPM_TOKEN }}
8
+
9
+ jobs:
10
+ version-check:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - uses: actions/checkout@v2
14
+ - uses: actions/setup-node@v2
15
+ with:
16
+ node-version: '14'
17
+ - name: Register ssh keys
18
+ uses: webfactory/ssh-agent@v0.5.3
19
+ with:
20
+ ssh-private-key: |
21
+ ${{ env.SSH_PRIVATE_KEY }}
22
+ - name: Register NPM access token
23
+ run: npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
24
+ env:
25
+ NPM_TOKEN: ${{ env.NPM_TOKEN }}
26
+ - name: Removing alpha tag from package json
27
+ run: chmod +x ./pre-release.sh && ./pre-release.sh
28
+ - id: publish
29
+ uses: JS-DevTools/npm-publish@v1
30
+ with:
31
+ token: ${{ env.NPM_TOKEN }}
32
+ dry-run: true
33
+
34
+ - if: steps.publish.outputs.type == 'none'
35
+ run: |
36
+ echo "Package JSON version is already published, please bump the version!"
37
+ exit 1
package/alpha-release.sh CHANGED
File without changes
@@ -0,0 +1,12 @@
1
+ export declare namespace NotificationService {
2
+ namespace Types {
3
+ interface INotification {
4
+ title: string;
5
+ body: string;
6
+ }
7
+ interface INotificationOptions {
8
+ notification: INotification;
9
+ registrationToken: string;
10
+ }
11
+ }
12
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=notification.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification.js","sourceRoot":"","sources":["../../../../types/services/outbound/notification.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hedia/types",
3
- "version": "2.1.31-alpha.5",
3
+ "version": "2.1.31",
4
4
  "description": "Enums, interfaces, and other common types for use in Hedia's software.",
5
5
  "main": "dist/index.js",
6
6
  "repository": {
@@ -0,0 +1,13 @@
1
+ export namespace NotificationService {
2
+ export namespace Types {
3
+ export interface INotification {
4
+ title: string;
5
+ body: string;
6
+ }
7
+
8
+ export interface INotificationOptions {
9
+ notification: INotification;
10
+ registrationToken: string;
11
+ }
12
+ }
13
+ }
@@ -1,60 +0,0 @@
1
- name: Post-merge - Publish & Update package version
2
-
3
- on:
4
- pull_request:
5
- branches:
6
- - master
7
- types: [closed]
8
-
9
- env:
10
- SSH_PRIVATE_KEY: ${{ secrets.HEDIA_BOT_PRIVATE_SSH_KEY }}
11
- NPM_TOKEN: ${{ secrets.HEDIA_BOT_NPM_TOKEN }}
12
-
13
- jobs:
14
- publish-package-push-master:
15
- if: github.event.pull_request.merged == true
16
-
17
- runs-on: ubuntu-latest
18
-
19
- strategy:
20
- matrix:
21
- node-version: [14.15]
22
-
23
- steps:
24
- - uses: actions/checkout@v2
25
-
26
- - name: Use Node.js ${{ matrix.node-version }}
27
- uses: actions/setup-node@v1.4.4
28
- with:
29
- node-version: ${{ matrix.node-version }}
30
-
31
- - name: Register ssh keys
32
- uses: webfactory/ssh-agent@v0.4.1
33
- with:
34
- ssh-private-key: ${{ env.SSH_PRIVATE_KEY }}
35
-
36
- - name: Register NPM access token and in
37
- run: npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
38
-
39
- - name: Removing alpha tag from package json
40
- run: chmod +x ./pre-release.sh && ./pre-release.sh
41
-
42
- - name: Installing dependencies
43
- run: npm ci
44
-
45
- - id: publish
46
- uses: JS-DevTools/npm-publish@v1
47
- with:
48
- token: ${{ env.NPM_TOKEN }}
49
-
50
- - if: steps.publish.outputs.type == 'none'
51
- run: |
52
- echo "Failed to publish on npm, version already exists"
53
- exit 1
54
-
55
- - name: Commit & Push changes
56
- uses: actions-js/push@master
57
- with:
58
- github_token: ${{ secrets.GITHUB_TOKEN }}
59
- branch: 'master'
60
- message: 'Post-publish master package version update'