Skip to content

Commit 777b741

Browse files
Alexey Ryazanova-ryazanov
Alexey Ryazanov
authored andcommitted
feat(ci): add release workflow with release-it
1 parent 6df8b3f commit 777b741

File tree

10 files changed

+7819
-6283
lines changed

10 files changed

+7819
-6283
lines changed

.github/workflows/pull-request.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818

1919
strategy:
2020
matrix:
21-
node: [ 8, 10, 12, 14, 16, 18, 20 ]
21+
node: [ 16, 18, 20 ]
2222

2323
steps:
2424
- uses: actions/checkout@v3
@@ -40,6 +40,9 @@ jobs:
4040
- name: Test
4141
run: npm run test:ci
4242

43+
- name: Check release
44+
run: npm run release:dry
45+
4346
- name: Coveralls
4447
uses: coverallsapp/github-action@master
4548
env:

.github/workflows/release.yml

+26-31
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,39 @@
1-
name: Release
1+
name: release
22

33
on:
44
push:
55
branches:
66
- master
77

8+
env:
9+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
11+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
12+
813
jobs:
914
release:
1015
if: "!contains(github.event.head_commit.message, 'chore(release)')"
1116

1217
runs-on: ubuntu-latest
1318

1419
steps:
15-
- run: echo 'Test'
16-
# - uses: actions/checkout@v2
17-
# with:
18-
# token: ${{ secrets.TINKOFF_BOT_PAT }}
19-
# fetch-depth: 0
20-
#
21-
# - name: Git Identity
22-
# run: |
23-
# git config --global user.name 'tinkoff-bot'
24-
# git config --global user.email '[email protected]'
25-
#
26-
# - uses: actions/setup-node@v2
27-
# with:
28-
# node-version: '14.x'
29-
# registry-url: 'https://registry.npmjs.org'
30-
#
31-
# - name: Clean install
32-
# run: npm ci
33-
#
34-
# - name: Create release commit and tag
35-
# run: |
36-
# npm run version -- --no-push
37-
#
38-
# - name: Push release commit and tag
39-
# run: git push --follow-tags
40-
#
41-
# - name: Publish packages
42-
# run: npm run publish:ci
43-
# env:
44-
# NODE_AUTH_TOKEN: ${{ secrets.TINKOFF_NPM_AUTH_TOKEN }}
20+
- name: Initialize Git user
21+
run: |
22+
git config --global user.name 'tinkoff-bot'
23+
git config --global user.email '[email protected]'
24+
25+
- uses: actions/checkout@v3
26+
27+
- uses: actions/setup-node@v3
28+
with:
29+
node-version: 18.x
30+
registry-url: 'https://registry.npmjs.org'
31+
32+
- name: Install dependencies
33+
run: npm ci
34+
35+
- name: Build
36+
run: npm run build
37+
38+
- name: Release
39+
run: npm run release

.release-it.json

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"git": {
3+
"commitMessage": "chore(release): version ${version}"
4+
},
5+
"github": {
6+
"release": true
7+
},
8+
"plugins": {
9+
"@release-it/conventional-changelog": {
10+
"preset": "conventionalcommits",
11+
"infile": "CHANGELOG.md"
12+
}
13+
}
14+
}

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# 2.2.1
1+
## 2.2.1
22

33
+ add check into the utility isEqual for comparision of functions by reference (#63)
44

0 commit comments

Comments
 (0)