@staffbase/widget-sdk 3.3.5 → 3.4.0-alpha.13
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.
- package/dist/base-block.d.ts +98 -0
- package/{index.d.ts → dist/base-block.js} +2 -11
- package/{lib/block-attributes.ts → dist/block-attributes.d.ts} +2 -3
- package/dist/block-attributes.js +13 -0
- package/dist/block-definition.d.ts +91 -0
- package/dist/block-definition.js +13 -0
- package/dist/block-element.d.ts +45 -0
- package/dist/block-element.js +13 -0
- package/{lib/block-factory.ts → dist/block-factory.d.ts} +2 -6
- package/dist/block-factory.js +13 -0
- package/{lib/external-block-definition.ts → dist/external-block-definition.d.ts} +15 -19
- package/dist/external-block-definition.js +13 -0
- package/{lib → dist}/global.d.ts +6 -9
- package/dist/global.js +13 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +9 -0
- package/{lib/widget-api-types.ts → dist/widget-api-types.d.ts} +92 -76
- package/dist/widget-api-types.js +21 -0
- package/{lib/widget-api.ts → dist/widget-api.d.ts} +18 -8
- package/dist/widget-api.js +13 -0
- package/docs/BaseBlock.md +1259 -1
- package/docs/BlockAttributes.md +4 -0
- package/docs/BlockDefinition.md +36 -0
- package/docs/BlockElement.md +20 -0
- package/docs/ColorTheme.md +32 -0
- package/docs/ExternalBlockDefinition.md +12 -0
- package/docs/Home.md +25 -0
- package/docs/IntegrationInformation.md +70 -0
- package/docs/IntegrationState.md +41 -0
- package/docs/IntegrationToken.md +30 -0
- package/docs/SBColors.md +224 -0
- package/docs/SBFileType.md +24 -0
- package/docs/SBImageEntity.md +24 -0
- package/docs/SBUserAvatar.md +16 -0
- package/docs/SBUserProfile.md +32 -0
- package/docs/UserListItem.md +16 -0
- package/docs/UserListRequestQuery.md +16 -0
- package/docs/UserListResponse.md +16 -0
- package/docs/WidgetApi.md +50 -0
- package/package.json +17 -12
- package/.commitlintrc.json +0 -28
- package/.github/CODEOWNERS +0 -1
- package/.github/workflows/ci.yaml +0 -61
- package/.github/workflows/dependency-update.yml +0 -24
- package/.husky/commit-msg +0 -6
- package/.releaserc +0 -38
- package/CHANGELOG.md +0 -295
- package/CONTRIBUTING.md +0 -10
- package/catalog-info.yaml +0 -11
- package/lib/base-block.ts +0 -110
- package/lib/block-definition.ts +0 -101
- package/lib/block-element.ts +0 -56
- package/tsconfig.json +0 -13
package/docs/SBUserProfile.md
CHANGED
|
@@ -21,44 +21,76 @@ User profile data
|
|
|
21
21
|
|
|
22
22
|
• `Optional` **avatar**: [`SBUserAvatar`](../wiki/SBUserAvatar)
|
|
23
23
|
|
|
24
|
+
#### Defined in
|
|
25
|
+
|
|
26
|
+
[lib/widget-api-types.ts:145](https://github.com/Staffbase/widget-sdk/blob/7bb16cc/lib/widget-api-types.ts#L145)
|
|
27
|
+
|
|
24
28
|
___
|
|
25
29
|
|
|
26
30
|
### department
|
|
27
31
|
|
|
28
32
|
• `Optional` **department**: `string`
|
|
29
33
|
|
|
34
|
+
#### Defined in
|
|
35
|
+
|
|
36
|
+
[lib/widget-api-types.ts:146](https://github.com/Staffbase/widget-sdk/blob/7bb16cc/lib/widget-api-types.ts#L146)
|
|
37
|
+
|
|
30
38
|
___
|
|
31
39
|
|
|
32
40
|
### firstName
|
|
33
41
|
|
|
34
42
|
• **firstName**: `string`
|
|
35
43
|
|
|
44
|
+
#### Defined in
|
|
45
|
+
|
|
46
|
+
[lib/widget-api-types.ts:139](https://github.com/Staffbase/widget-sdk/blob/7bb16cc/lib/widget-api-types.ts#L139)
|
|
47
|
+
|
|
36
48
|
___
|
|
37
49
|
|
|
38
50
|
### lastName
|
|
39
51
|
|
|
40
52
|
• **lastName**: `string`
|
|
41
53
|
|
|
54
|
+
#### Defined in
|
|
55
|
+
|
|
56
|
+
[lib/widget-api-types.ts:140](https://github.com/Staffbase/widget-sdk/blob/7bb16cc/lib/widget-api-types.ts#L140)
|
|
57
|
+
|
|
42
58
|
___
|
|
43
59
|
|
|
44
60
|
### location
|
|
45
61
|
|
|
46
62
|
• `Optional` **location**: `string`
|
|
47
63
|
|
|
64
|
+
#### Defined in
|
|
65
|
+
|
|
66
|
+
[lib/widget-api-types.ts:143](https://github.com/Staffbase/widget-sdk/blob/7bb16cc/lib/widget-api-types.ts#L143)
|
|
67
|
+
|
|
48
68
|
___
|
|
49
69
|
|
|
50
70
|
### phoneNumber
|
|
51
71
|
|
|
52
72
|
• `Optional` **phoneNumber**: `string`
|
|
53
73
|
|
|
74
|
+
#### Defined in
|
|
75
|
+
|
|
76
|
+
[lib/widget-api-types.ts:141](https://github.com/Staffbase/widget-sdk/blob/7bb16cc/lib/widget-api-types.ts#L141)
|
|
77
|
+
|
|
54
78
|
___
|
|
55
79
|
|
|
56
80
|
### position
|
|
57
81
|
|
|
58
82
|
• `Optional` **position**: `string`
|
|
59
83
|
|
|
84
|
+
#### Defined in
|
|
85
|
+
|
|
86
|
+
[lib/widget-api-types.ts:144](https://github.com/Staffbase/widget-sdk/blob/7bb16cc/lib/widget-api-types.ts#L144)
|
|
87
|
+
|
|
60
88
|
___
|
|
61
89
|
|
|
62
90
|
### publicEmailAddress
|
|
63
91
|
|
|
64
92
|
• `Optional` **publicEmailAddress**: `string`
|
|
93
|
+
|
|
94
|
+
#### Defined in
|
|
95
|
+
|
|
96
|
+
[lib/widget-api-types.ts:142](https://github.com/Staffbase/widget-sdk/blob/7bb16cc/lib/widget-api-types.ts#L142)
|
package/docs/UserListItem.md
CHANGED
|
@@ -17,20 +17,36 @@ Single user item
|
|
|
17
17
|
|
|
18
18
|
• `Optional` **entityType**: `string`
|
|
19
19
|
|
|
20
|
+
#### Defined in
|
|
21
|
+
|
|
22
|
+
[lib/widget-api-types.ts:175](https://github.com/Staffbase/widget-sdk/blob/7bb16cc/lib/widget-api-types.ts#L175)
|
|
23
|
+
|
|
20
24
|
___
|
|
21
25
|
|
|
22
26
|
### firstName
|
|
23
27
|
|
|
24
28
|
• `Optional` **firstName**: `string`
|
|
25
29
|
|
|
30
|
+
#### Defined in
|
|
31
|
+
|
|
32
|
+
[lib/widget-api-types.ts:173](https://github.com/Staffbase/widget-sdk/blob/7bb16cc/lib/widget-api-types.ts#L173)
|
|
33
|
+
|
|
26
34
|
___
|
|
27
35
|
|
|
28
36
|
### id
|
|
29
37
|
|
|
30
38
|
• `Optional` **id**: `string`
|
|
31
39
|
|
|
40
|
+
#### Defined in
|
|
41
|
+
|
|
42
|
+
[lib/widget-api-types.ts:172](https://github.com/Staffbase/widget-sdk/blob/7bb16cc/lib/widget-api-types.ts#L172)
|
|
43
|
+
|
|
32
44
|
___
|
|
33
45
|
|
|
34
46
|
### lastName
|
|
35
47
|
|
|
36
48
|
• `Optional` **lastName**: `string`
|
|
49
|
+
|
|
50
|
+
#### Defined in
|
|
51
|
+
|
|
52
|
+
[lib/widget-api-types.ts:174](https://github.com/Staffbase/widget-sdk/blob/7bb16cc/lib/widget-api-types.ts#L174)
|
|
@@ -17,20 +17,36 @@ User list request parameters
|
|
|
17
17
|
|
|
18
18
|
• `Optional` **filter**: `string`
|
|
19
19
|
|
|
20
|
+
#### Defined in
|
|
21
|
+
|
|
22
|
+
[lib/widget-api-types.ts:165](https://github.com/Staffbase/widget-sdk/blob/7bb16cc/lib/widget-api-types.ts#L165)
|
|
23
|
+
|
|
20
24
|
___
|
|
21
25
|
|
|
22
26
|
### limit
|
|
23
27
|
|
|
24
28
|
• `Optional` **limit**: `number`
|
|
25
29
|
|
|
30
|
+
#### Defined in
|
|
31
|
+
|
|
32
|
+
[lib/widget-api-types.ts:162](https://github.com/Staffbase/widget-sdk/blob/7bb16cc/lib/widget-api-types.ts#L162)
|
|
33
|
+
|
|
26
34
|
___
|
|
27
35
|
|
|
28
36
|
### offset
|
|
29
37
|
|
|
30
38
|
• `Optional` **offset**: `number`
|
|
31
39
|
|
|
40
|
+
#### Defined in
|
|
41
|
+
|
|
42
|
+
[lib/widget-api-types.ts:163](https://github.com/Staffbase/widget-sdk/blob/7bb16cc/lib/widget-api-types.ts#L163)
|
|
43
|
+
|
|
32
44
|
___
|
|
33
45
|
|
|
34
46
|
### sort
|
|
35
47
|
|
|
36
48
|
• `Optional` **sort**: [`UserListSorting`](../wiki/Home#userlistsorting)
|
|
49
|
+
|
|
50
|
+
#### Defined in
|
|
51
|
+
|
|
52
|
+
[lib/widget-api-types.ts:164](https://github.com/Staffbase/widget-sdk/blob/7bb16cc/lib/widget-api-types.ts#L164)
|
package/docs/UserListResponse.md
CHANGED
|
@@ -17,20 +17,36 @@ Responded user list
|
|
|
17
17
|
|
|
18
18
|
• **data**: [`UserListItem`](../wiki/UserListItem)[]
|
|
19
19
|
|
|
20
|
+
#### Defined in
|
|
21
|
+
|
|
22
|
+
[lib/widget-api-types.ts:182](https://github.com/Staffbase/widget-sdk/blob/7bb16cc/lib/widget-api-types.ts#L182)
|
|
23
|
+
|
|
20
24
|
___
|
|
21
25
|
|
|
22
26
|
### limit
|
|
23
27
|
|
|
24
28
|
• **limit**: `number`
|
|
25
29
|
|
|
30
|
+
#### Defined in
|
|
31
|
+
|
|
32
|
+
[lib/widget-api-types.ts:184](https://github.com/Staffbase/widget-sdk/blob/7bb16cc/lib/widget-api-types.ts#L184)
|
|
33
|
+
|
|
26
34
|
___
|
|
27
35
|
|
|
28
36
|
### offset
|
|
29
37
|
|
|
30
38
|
• **offset**: `number`
|
|
31
39
|
|
|
40
|
+
#### Defined in
|
|
41
|
+
|
|
42
|
+
[lib/widget-api-types.ts:183](https://github.com/Staffbase/widget-sdk/blob/7bb16cc/lib/widget-api-types.ts#L183)
|
|
43
|
+
|
|
32
44
|
___
|
|
33
45
|
|
|
34
46
|
### total
|
|
35
47
|
|
|
36
48
|
• **total**: `number`
|
|
49
|
+
|
|
50
|
+
#### Defined in
|
|
51
|
+
|
|
52
|
+
[lib/widget-api-types.ts:185](https://github.com/Staffbase/widget-sdk/blob/7bb16cc/lib/widget-api-types.ts#L185)
|
package/docs/WidgetApi.md
CHANGED
|
@@ -8,6 +8,7 @@ A class providing access to additional information about the Staffbase ecosystem
|
|
|
8
8
|
|
|
9
9
|
### Methods
|
|
10
10
|
|
|
11
|
+
- [getIntegration](../wiki/WidgetApi#getintegration)
|
|
11
12
|
- [getLegacyAppTheme](../wiki/WidgetApi#getlegacyapptheme)
|
|
12
13
|
- [getUserInformation](../wiki/WidgetApi#getuserinformation)
|
|
13
14
|
- [getUserInformationByExternalId](../wiki/WidgetApi#getuserinformationbyexternalid)
|
|
@@ -15,6 +16,39 @@ A class providing access to additional information about the Staffbase ecosystem
|
|
|
15
16
|
|
|
16
17
|
## Methods
|
|
17
18
|
|
|
19
|
+
### getIntegration
|
|
20
|
+
|
|
21
|
+
▸ **getIntegration**(`type`, `refresh?`): `Promise`<[`IntegrationInformation`](../wiki/IntegrationInformation)\>
|
|
22
|
+
|
|
23
|
+
Call to retrieve a valid token to access the Microsoft API. Includes a time value to
|
|
24
|
+
refresh the token.
|
|
25
|
+
|
|
26
|
+
**`deprecated`** Returns a IntegrationToken or null if the user is not logged in. This will be replaced
|
|
27
|
+
completely by the IntegrationInformation, containing the token.
|
|
28
|
+
|
|
29
|
+
#### Parameters
|
|
30
|
+
|
|
31
|
+
| Name | Type | Description |
|
|
32
|
+
| :------ | :------ | :------ |
|
|
33
|
+
| `type` | ``"ms365"`` | The name of the integration. ("ms365") |
|
|
34
|
+
| `refresh?` | `boolean` | Force a refresh of the integration. |
|
|
35
|
+
|
|
36
|
+
#### Returns
|
|
37
|
+
|
|
38
|
+
`Promise`<[`IntegrationInformation`](../wiki/IntegrationInformation)\>
|
|
39
|
+
|
|
40
|
+
A promise containing the IntegrationInformation is returned. If the user session is
|
|
41
|
+
not existing, the status is set to 'loggedOut' and the token is null. Additionally if the
|
|
42
|
+
integration is not configured the status returns 'unavailable'.
|
|
43
|
+
|
|
44
|
+
In case of an error, the promise is rejected.
|
|
45
|
+
|
|
46
|
+
#### Defined in
|
|
47
|
+
|
|
48
|
+
[lib/widget-api.ts:74](https://github.com/Staffbase/widget-sdk/blob/7bb16cc/lib/widget-api.ts#L74)
|
|
49
|
+
|
|
50
|
+
___
|
|
51
|
+
|
|
18
52
|
### getLegacyAppTheme
|
|
19
53
|
|
|
20
54
|
▸ **getLegacyAppTheme**(): [`ColorTheme`](../wiki/ColorTheme)
|
|
@@ -28,6 +62,10 @@ are currently redesigned, this method is called legacy.
|
|
|
28
62
|
|
|
29
63
|
An object containing the color theme data is returned.
|
|
30
64
|
|
|
65
|
+
#### Defined in
|
|
66
|
+
|
|
67
|
+
[lib/widget-api.ts:29](https://github.com/Staffbase/widget-sdk/blob/7bb16cc/lib/widget-api.ts#L29)
|
|
68
|
+
|
|
31
69
|
___
|
|
32
70
|
|
|
33
71
|
### getUserInformation
|
|
@@ -49,6 +87,10 @@ Call to retrieve the user profile of the current or a specific user.
|
|
|
49
87
|
A promise containing the SBUserProfile is returned. In case of an error,
|
|
50
88
|
the promise is rejected.
|
|
51
89
|
|
|
90
|
+
#### Defined in
|
|
91
|
+
|
|
92
|
+
[lib/widget-api.ts:38](https://github.com/Staffbase/widget-sdk/blob/7bb16cc/lib/widget-api.ts#L38)
|
|
93
|
+
|
|
52
94
|
___
|
|
53
95
|
|
|
54
96
|
### getUserInformationByExternalId
|
|
@@ -70,6 +112,10 @@ Call to retrieve a user profile by its external ID.
|
|
|
70
112
|
A promise containing the SBUserProfile is returned. In case of an error,
|
|
71
113
|
the promise is rejected.
|
|
72
114
|
|
|
115
|
+
#### Defined in
|
|
116
|
+
|
|
117
|
+
[lib/widget-api.ts:47](https://github.com/Staffbase/widget-sdk/blob/7bb16cc/lib/widget-api.ts#L47)
|
|
118
|
+
|
|
73
119
|
___
|
|
74
120
|
|
|
75
121
|
### getUserList
|
|
@@ -90,3 +136,7 @@ Call to retrieve a list of users determined by the query object.
|
|
|
90
136
|
|
|
91
137
|
A promise containing the UserListResponse is returned. In case of an error,
|
|
92
138
|
the promise is rejected.
|
|
139
|
+
|
|
140
|
+
#### Defined in
|
|
141
|
+
|
|
142
|
+
[lib/widget-api.ts:56](https://github.com/Staffbase/widget-sdk/blob/7bb16cc/lib/widget-api.ts#L56)
|
package/package.json
CHANGED
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@staffbase/widget-sdk",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.0-alpha.13",
|
|
4
4
|
"description": "Staffbase SDK for Custom Widgets",
|
|
5
|
+
"module": "./dist/index.js",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"exports": "./dist/index.js",
|
|
8
|
+
"typings": "./dist/index.d.ts",
|
|
9
|
+
"type": "module",
|
|
5
10
|
"keywords": [
|
|
6
11
|
"web-components"
|
|
7
12
|
],
|
|
8
13
|
"scripts": {
|
|
9
14
|
"clean-doc": "npx rimraf docs",
|
|
10
|
-
"doc": "npm run clean-doc && typedoc --
|
|
15
|
+
"doc": "npm run clean-doc && typedoc --theme github-wiki --readme none --out docs lib/index.ts",
|
|
11
16
|
"release": "semantic-release",
|
|
12
17
|
"prepare": "husky install"
|
|
13
18
|
},
|
|
@@ -18,17 +23,17 @@
|
|
|
18
23
|
"@types/json-schema": "^7.0.9"
|
|
19
24
|
},
|
|
20
25
|
"devDependencies": {
|
|
21
|
-
"@amanda-mitchell/semantic-release-npm-multiple": "2.
|
|
22
|
-
"@commitlint/cli": "
|
|
23
|
-
"@commitlint/config-conventional": "
|
|
24
|
-
"@tmware/semantic-release-npm-github-publish": "1.
|
|
25
|
-
"@types/react": "^17.0.
|
|
26
|
+
"@amanda-mitchell/semantic-release-npm-multiple": "2.17.0",
|
|
27
|
+
"@commitlint/cli": "16.1.0",
|
|
28
|
+
"@commitlint/config-conventional": "16.0.0",
|
|
29
|
+
"@tmware/semantic-release-npm-github-publish": "1.5.0",
|
|
30
|
+
"@types/react": "^17.0.38",
|
|
26
31
|
"husky": "^7.0.4",
|
|
27
|
-
"semantic-release": "^
|
|
28
|
-
"typedoc": "0.22.
|
|
29
|
-
"typedoc-github-wiki-theme": "0.
|
|
30
|
-
"typedoc-plugin-markdown": "3.11.
|
|
31
|
-
"typescript": "^4.
|
|
32
|
+
"semantic-release": "^19.0.2",
|
|
33
|
+
"typedoc": "0.22.11",
|
|
34
|
+
"typedoc-github-wiki-theme": "1.0.0",
|
|
35
|
+
"typedoc-plugin-markdown": "3.11.12",
|
|
36
|
+
"typescript": "^4.5.5"
|
|
32
37
|
},
|
|
33
38
|
"repository": {
|
|
34
39
|
"type": "git",
|
package/.commitlintrc.json
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": ["@commitlint/config-conventional"],
|
|
3
|
-
"rules": {
|
|
4
|
-
"subject-case": [
|
|
5
|
-
2,
|
|
6
|
-
"always",
|
|
7
|
-
["sentence-case", "start-case", "pascal-case", "upper-case", "lower-case"]
|
|
8
|
-
],
|
|
9
|
-
"type-enum": [
|
|
10
|
-
2,
|
|
11
|
-
"always",
|
|
12
|
-
[
|
|
13
|
-
"build",
|
|
14
|
-
"chore",
|
|
15
|
-
"ci",
|
|
16
|
-
"docs",
|
|
17
|
-
"feat",
|
|
18
|
-
"fix",
|
|
19
|
-
"perf",
|
|
20
|
-
"refactor",
|
|
21
|
-
"revert",
|
|
22
|
-
"style",
|
|
23
|
-
"test",
|
|
24
|
-
"sample"
|
|
25
|
-
]
|
|
26
|
-
]
|
|
27
|
-
}
|
|
28
|
-
}
|
package/.github/CODEOWNERS
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
* @Staffbase/need-for-speed-devs
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
|
|
2
|
-
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
|
|
3
|
-
|
|
4
|
-
name: Continous Integration
|
|
5
|
-
|
|
6
|
-
on:
|
|
7
|
-
push:
|
|
8
|
-
branches:
|
|
9
|
-
- '**'
|
|
10
|
-
|
|
11
|
-
env:
|
|
12
|
-
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
|
13
|
-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
14
|
-
|
|
15
|
-
jobs:
|
|
16
|
-
test:
|
|
17
|
-
name: Build and Test
|
|
18
|
-
runs-on: ubuntu-20.04
|
|
19
|
-
|
|
20
|
-
steps:
|
|
21
|
-
- uses: actions/checkout@v2
|
|
22
|
-
- name: Use Node.js
|
|
23
|
-
uses: actions/setup-node@v2
|
|
24
|
-
with:
|
|
25
|
-
node-version: 14.x
|
|
26
|
-
|
|
27
|
-
- name: Install dependencies
|
|
28
|
-
env:
|
|
29
|
-
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
30
|
-
CI_BRANCH_BASE: ${{ steps.fetch_pr.outputs.pr_base || 'master' }}
|
|
31
|
-
run: npm install
|
|
32
|
-
|
|
33
|
-
release:
|
|
34
|
-
name: Release
|
|
35
|
-
needs: test
|
|
36
|
-
runs-on: ubuntu-20.04
|
|
37
|
-
steps:
|
|
38
|
-
- uses: actions/checkout@v2
|
|
39
|
-
with:
|
|
40
|
-
token: ${{ secrets.GH_TOKEN_SEMANTIC_RELEASE }}
|
|
41
|
-
fetch-depth: 0
|
|
42
|
-
|
|
43
|
-
- uses: actions/setup-node@v2
|
|
44
|
-
with:
|
|
45
|
-
node-version: 14.x
|
|
46
|
-
|
|
47
|
-
- name: Install dependencies
|
|
48
|
-
run: npm install
|
|
49
|
-
|
|
50
|
-
- name: Remove NPM publish
|
|
51
|
-
if: ${{ github.ref == 'refs/heads/alpha' }}
|
|
52
|
-
run: "sed -i '/public:/d' .releaserc"
|
|
53
|
-
|
|
54
|
-
- name: Release
|
|
55
|
-
run: npm run release
|
|
56
|
-
env:
|
|
57
|
-
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
|
58
|
-
GITHUB_NPM_CONFIG_REGISTRY: https://npm.pkg.github.com/
|
|
59
|
-
GITHUB_NPM_TOKEN: ${{ secrets.GH_TOKEN }}
|
|
60
|
-
PUBLIC_NPM_CONFIG_REGISTRY: https://registry.npmjs.org
|
|
61
|
-
PUBLIC_NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
name: Dependency Update
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
schedule:
|
|
5
|
-
- cron: "0 12 * * 3" # every Wednesday at 12pm UTC
|
|
6
|
-
workflow_dispatch:
|
|
7
|
-
|
|
8
|
-
env:
|
|
9
|
-
NPM_TOKEN: ${{ secrets.STAFFBOT_NPM_TOKEN_PACKAGE_READ }}
|
|
10
|
-
GITHUB_TOKEN: ${{ secrets.STAFFBOT_GITHUB_TOKEN }}
|
|
11
|
-
|
|
12
|
-
jobs:
|
|
13
|
-
npm-audit-fix:
|
|
14
|
-
runs-on: ubuntu-latest
|
|
15
|
-
steps:
|
|
16
|
-
- uses: actions/checkout@v2
|
|
17
|
-
with:
|
|
18
|
-
persist-credentials: false
|
|
19
|
-
- uses: Staffbase/npm-audit-fix-action@v3.3.0
|
|
20
|
-
with:
|
|
21
|
-
github_token: ${{ secrets.STAFFBOT_GITHUB_TOKEN }}
|
|
22
|
-
github_user: "Staffbot"
|
|
23
|
-
github_email: "staffbot@staffbase.com"
|
|
24
|
-
labels: "dependencies, javascript, security, dev"
|
package/.husky/commit-msg
DELETED
package/.releaserc
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
tagFormat: ${version}
|
|
2
|
-
debug: true
|
|
3
|
-
dryRun: false
|
|
4
|
-
extends: '@tmware/semantic-release-npm-github-publish'
|
|
5
|
-
plugins:
|
|
6
|
-
- - '@semantic-release/commit-analyzer'
|
|
7
|
-
- releaseRules:
|
|
8
|
-
- type: "build"
|
|
9
|
-
release: false
|
|
10
|
-
- type: "ci"
|
|
11
|
-
release: false
|
|
12
|
-
- type: "chore"
|
|
13
|
-
release: false
|
|
14
|
-
- type: "docs"
|
|
15
|
-
release: "patch"
|
|
16
|
-
- type: "refactor"
|
|
17
|
-
release: false
|
|
18
|
-
- type: "style"
|
|
19
|
-
release: false
|
|
20
|
-
- type: "test"
|
|
21
|
-
release: false
|
|
22
|
-
|
|
23
|
-
- '@semantic-release/release-notes-generator'
|
|
24
|
-
- '@semantic-release/changelog'
|
|
25
|
-
- - '@amanda-mitchell/semantic-release-npm-multiple'
|
|
26
|
-
- registries:
|
|
27
|
-
github: {}
|
|
28
|
-
public: {}
|
|
29
|
-
- - '@semantic-release/git'
|
|
30
|
-
- assets:
|
|
31
|
-
- package.json
|
|
32
|
-
- package-lock.json
|
|
33
|
-
- CHANGELOG.md
|
|
34
|
-
message: |-
|
|
35
|
-
release(version): Release ${nextRelease.version} [skip ci]
|
|
36
|
-
|
|
37
|
-
${nextRelease.notes}
|
|
38
|
-
- '@semantic-release/github'
|