Skip to content

Commit 8ce4481

Browse files
committed
ci(ci): 💚 Updated release actions
1 parent 9f6efb2 commit 8ce4481

File tree

6 files changed

+68
-28
lines changed

6 files changed

+68
-28
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,12 @@ jobs:
2626
- run: pnpm install
2727
- name: Build
2828
run: pnpm run build
29-
- name: Run tests
30-
run: pnpm run test
3129
- name: Bump version
32-
run: pnpm run bump
33-
- uses: stefanzweifel/git-auto-commit-action@v4
34-
with:
35-
commit_message: "ci(package-json): :bookmark: Bumped version"
36-
commit_user_email: [email protected]
37-
branch: main
30+
run: |
31+
git config --global user.email "[email protected]"
32+
git config --global user.name "Jan-Henrik Damaschke"
33+
pnpm run bump
34+
git push
3835
- name: Publish package
3936
run: pnpm publish
4037
env:

.github/workflows/release.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v3
14+
with:
15+
fetch-depth: 0
16+
17+
- uses: pnpm/action-setup@v2
18+
with:
19+
version: 7
20+
21+
- uses: actions/setup-node@v3
22+
with:
23+
node-version: "16"
24+
registry-url: "https://registry.npmjs.org"
25+
cache: "pnpm"
26+
27+
- run: pnpm install
28+
29+
- name: Build
30+
run: pnpm run build
31+
32+
- name: Bump version
33+
run: |
34+
git config --global user.email "[email protected]"
35+
git config --global user.name "Jan-Henrik Damaschke"
36+
pnpm dlx changelogithub
37+
env:
38+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
39+
40+
- name: Publish package
41+
run: pnpm publish
42+
env:
43+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# @itpropro/tree-structure-ts
22

3-
![npm (scoped)](https://img.shields.io/npm/v/@itpropro/tree-structure-ts)
3+
[![npm (scoped)](https://img.shields.io/npm/v/@itpropro/tree-structure-ts)](https://www.npmjs.com/package/@itpropro/tree-structure-ts)
44
![npm bundle size (scoped)](https://img.shields.io/bundlephobia/min/@itpropro/tree-structure-ts)
5-
![GitHub Workflow Status](https://img.shields.io/github/workflow/status/itpropro/tree-structure-ts/publish)
5+
![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/itpropro/tree-structure-ts/ci.yml?branch=main)
66
![Code Coverage](https://img.shields.io/badge/coverage->95%25-green)
77

88
## Introduction

docs/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
# @itpropro/tree-structure-ts
44

5-
![npm (scoped)](https://img.shields.io/npm/v/@itpropro/tree-structure-ts)
5+
[![npm (scoped)](https://img.shields.io/npm/v/@itpropro/tree-structure-ts)](https://www.npmjs.com/package/@itpropro/tree-structure-ts)
66
![npm bundle size (scoped)](https://img.shields.io/bundlephobia/min/@itpropro/tree-structure-ts)
7-
![GitHub Workflow Status](https://img.shields.io/github/workflow/status/itpropro/tree-structure-ts/publish)
7+
![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/itpropro/tree-structure-ts/ci.yml?branch=main)
88
![Code Coverage](https://img.shields.io/badge/coverage->95%25-green)
99

1010
## Introduction

docs/classes/Tree.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Creates a new `Tree` instance.
4747

4848
#### Defined in
4949

50-
[Tree.ts:16](https://github.com/itpropro/tree-structure-ts/blob/d89204c/src/Tree.ts#L16)
50+
[Tree.ts:16](https://github.com/itpropro/tree-structure-ts/blob/9f6efb2/src/Tree.ts#L16)
5151

5252
## Properties
5353

@@ -59,7 +59,7 @@ The root node of the tree.
5959

6060
#### Defined in
6161

62-
[Tree.ts:10](https://github.com/itpropro/tree-structure-ts/blob/d89204c/src/Tree.ts#L10)
62+
[Tree.ts:10](https://github.com/itpropro/tree-structure-ts/blob/9f6efb2/src/Tree.ts#L10)
6363

6464
## Methods
6565

@@ -75,7 +75,7 @@ Returns all the nodes of the tree in an array.
7575

7676
#### Defined in
7777

78-
[Tree.ts:70](https://github.com/itpropro/tree-structure-ts/blob/d89204c/src/Tree.ts#L70)
78+
[Tree.ts:70](https://github.com/itpropro/tree-structure-ts/blob/9f6efb2/src/Tree.ts#L70)
7979

8080
___
8181

@@ -99,4 +99,4 @@ calling the provided callback function on each visited node.
9999

100100
#### Defined in
101101

102-
[Tree.ts:27](https://github.com/itpropro/tree-structure-ts/blob/d89204c/src/Tree.ts#L27)
102+
[Tree.ts:27](https://github.com/itpropro/tree-structure-ts/blob/9f6efb2/src/Tree.ts#L27)

docs/classes/TreeNode.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Creates a new TreeNode instance.
5656

5757
#### Defined in
5858

59-
[TreeNode.ts:25](https://github.com/itpropro/tree-structure-ts/blob/d89204c/src/TreeNode.ts#L25)
59+
[TreeNode.ts:25](https://github.com/itpropro/tree-structure-ts/blob/9f6efb2/src/TreeNode.ts#L25)
6060

6161
## Properties
6262

@@ -68,7 +68,7 @@ The children of the node.
6868

6969
#### Defined in
7070

71-
[TreeNode.ts:13](https://github.com/itpropro/tree-structure-ts/blob/d89204c/src/TreeNode.ts#L13)
71+
[TreeNode.ts:13](https://github.com/itpropro/tree-structure-ts/blob/9f6efb2/src/TreeNode.ts#L13)
7272

7373
___
7474

@@ -80,7 +80,7 @@ The parent of the node.
8080

8181
#### Defined in
8282

83-
[TreeNode.ts:18](https://github.com/itpropro/tree-structure-ts/blob/d89204c/src/TreeNode.ts#L18)
83+
[TreeNode.ts:18](https://github.com/itpropro/tree-structure-ts/blob/9f6efb2/src/TreeNode.ts#L18)
8484

8585
___
8686

@@ -92,7 +92,7 @@ The value of the node.
9292

9393
#### Defined in
9494

95-
[TreeNode.ts:8](https://github.com/itpropro/tree-structure-ts/blob/d89204c/src/TreeNode.ts#L8)
95+
[TreeNode.ts:8](https://github.com/itpropro/tree-structure-ts/blob/9f6efb2/src/TreeNode.ts#L8)
9696

9797
## Methods
9898

@@ -116,7 +116,7 @@ The new child node.
116116

117117
#### Defined in
118118

119-
[TreeNode.ts:36](https://github.com/itpropro/tree-structure-ts/blob/d89204c/src/TreeNode.ts#L36)
119+
[TreeNode.ts:36](https://github.com/itpropro/tree-structure-ts/blob/9f6efb2/src/TreeNode.ts#L36)
120120

121121
___
122122

@@ -134,7 +134,7 @@ An array of TreeNode instances.
134134

135135
#### Defined in
136136

137-
[TreeNode.ts:46](https://github.com/itpropro/tree-structure-ts/blob/d89204c/src/TreeNode.ts#L46)
137+
[TreeNode.ts:46](https://github.com/itpropro/tree-structure-ts/blob/9f6efb2/src/TreeNode.ts#L46)
138138

139139
___
140140

@@ -152,7 +152,7 @@ An array of TreeNode instances.
152152

153153
#### Defined in
154154

155-
[TreeNode.ts:59](https://github.com/itpropro/tree-structure-ts/blob/d89204c/src/TreeNode.ts#L59)
155+
[TreeNode.ts:59](https://github.com/itpropro/tree-structure-ts/blob/9f6efb2/src/TreeNode.ts#L59)
156156

157157
___
158158

@@ -170,7 +170,7 @@ Checks if the current node has any child nodes.
170170

171171
#### Defined in
172172

173-
[TreeNode.ts:75](https://github.com/itpropro/tree-structure-ts/blob/d89204c/src/TreeNode.ts#L75)
173+
[TreeNode.ts:75](https://github.com/itpropro/tree-structure-ts/blob/9f6efb2/src/TreeNode.ts#L75)
174174

175175
___
176176

@@ -188,7 +188,7 @@ Checks if the current node has any siblings.
188188

189189
#### Defined in
190190

191-
[TreeNode.ts:83](https://github.com/itpropro/tree-structure-ts/blob/d89204c/src/TreeNode.ts#L83)
191+
[TreeNode.ts:83](https://github.com/itpropro/tree-structure-ts/blob/9f6efb2/src/TreeNode.ts#L83)
192192

193193
___
194194

@@ -206,7 +206,7 @@ Checks if the current node is the root node.
206206

207207
#### Defined in
208208

209-
[TreeNode.ts:91](https://github.com/itpropro/tree-structure-ts/blob/d89204c/src/TreeNode.ts#L91)
209+
[TreeNode.ts:91](https://github.com/itpropro/tree-structure-ts/blob/9f6efb2/src/TreeNode.ts#L91)
210210

211211
___
212212

@@ -224,7 +224,7 @@ The new current node after removing the current node.
224224

225225
#### Defined in
226226

227-
[TreeNode.ts:99](https://github.com/itpropro/tree-structure-ts/blob/d89204c/src/TreeNode.ts#L99)
227+
[TreeNode.ts:99](https://github.com/itpropro/tree-structure-ts/blob/9f6efb2/src/TreeNode.ts#L99)
228228

229229
___
230230

@@ -247,4 +247,4 @@ Traverses the tree starting from the current node.
247247

248248
#### Defined in
249249

250-
[TreeNode.ts:119](https://github.com/itpropro/tree-structure-ts/blob/d89204c/src/TreeNode.ts#L119)
250+
[TreeNode.ts:119](https://github.com/itpropro/tree-structure-ts/blob/9f6efb2/src/TreeNode.ts#L119)

0 commit comments

Comments
 (0)