Skip to content

Commit 6751867

Browse files
authored
Merge pull request #4 from fingerprintjs/update-deps
Update deps, use node20, use `@fingerprintjs/conventional-changelog-dx-team` config INTER-552
2 parents 66000b3 + 5ac1e99 commit 6751867

File tree

6 files changed

+163
-415
lines changed

6 files changed

+163
-415
lines changed

.github/workflows/generate-release-preview.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
release-comment:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v3
9+
- uses: actions/checkout@v4
1010
with:
1111
fetch-depth: 0
1212
- name: Collect semantic-release-info

.github/workflows/move-v1-tag.yml renamed to .github/workflows/move-v2-tag.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Move v1 Tag
1+
name: Move v2 Tag
22

33
on:
44
workflow_dispatch:
@@ -9,7 +9,7 @@ jobs:
99

1010
steps:
1111
- name: Checkout code
12-
uses: actions/checkout@v3
12+
uses: actions/checkout@v4
1313

1414
- name: Check branch
1515
run: |
@@ -23,10 +23,10 @@ jobs:
2323
git config user.name "semantic-release-bot"
2424
git config user.email "[email protected]"
2525
26-
- name: Move v1 tag to the latest commit in main
26+
- name: Move v2 tag to the latest commit in main
2727
run: |
2828
git fetch --tags
29-
git tag -d v1 || echo "v1 tag not found, continuing"
30-
git push origin :refs/tags/v1 || echo "v1 tag not found in origin, continuing"
31-
git tag v1
32-
git push origin v1
29+
git tag -d v2 || echo "v2 tag not found, continuing"
30+
git push origin :refs/tags/v2 || echo "v2 tag not found in origin, continuing"
31+
git tag v2
32+
git push origin v2

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ branding:
2222
icon: 'package'
2323
color: 'green'
2424
runs:
25-
using: 'node16'
25+
using: 'node20'
2626
main: 'index.js'

main.js

Lines changed: 3 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -7,93 +7,14 @@ const plugins = [
77
[
88
'@semantic-release/commit-analyzer',
99
{
10-
'releaseRules': [
11-
{
12-
'type': 'build',
13-
'scope': 'deps',
14-
'release': 'patch'
15-
},
16-
{
17-
'type': 'docs',
18-
'scope': 'README',
19-
'release': 'patch'
20-
}
21-
]
10+
"config": "@fingerprintjs/conventional-changelog-dx-team",
11+
"releaseRules": "@fingerprintjs/conventional-changelog-dx-team/release-rules"
2212
}
2313
],
2414
[
2515
'@semantic-release/release-notes-generator',
2616
{
27-
'preset': 'conventionalCommits',
28-
'presetConfig': {
29-
'types': [
30-
{
31-
'type': 'feat',
32-
'section': 'Features'
33-
},
34-
{
35-
'type': 'feature',
36-
'section': 'Features'
37-
},
38-
{
39-
'type': 'fix',
40-
'section': 'Bug Fixes'
41-
},
42-
{
43-
'type': 'perf',
44-
'section': 'Performance Improvements'
45-
},
46-
{
47-
'type': 'revert',
48-
'section': 'Reverts'
49-
},
50-
{
51-
'type': 'docs',
52-
'scope': 'README',
53-
'section': 'Documentation'
54-
},
55-
{
56-
'type': 'build',
57-
'scope': 'deps',
58-
'section': 'Build System'
59-
},
60-
{
61-
'type': 'docs',
62-
'section': 'Documentation',
63-
'hidden': true
64-
},
65-
{
66-
'type': 'style',
67-
'section': 'Styles',
68-
'hidden': true
69-
},
70-
{
71-
'type': 'chore',
72-
'section': 'Miscellaneous Chores',
73-
'hidden': true
74-
},
75-
{
76-
'type': 'refactor',
77-
'section': 'Code Refactoring',
78-
'hidden': true
79-
},
80-
{
81-
'type': 'test',
82-
'section': 'Tests',
83-
'hidden': true
84-
},
85-
{
86-
'type': 'build',
87-
'section': 'Build System',
88-
'hidden': true
89-
},
90-
{
91-
'type': 'ci',
92-
'section': 'Continuous Integration',
93-
'hidden': true
94-
}
95-
]
96-
}
17+
"config": "@fingerprintjs/conventional-changelog-dx-team"
9718
}
9819
],
9920
];

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
22
"name": "@fingerprintjs/action-semantic-release-preview",
33
"dependencies": {
4-
"@actions/core": "^1.10.0",
5-
"conventional-changelog-conventionalcommits": "^5.0.0",
4+
"@actions/core": "^1.10.1",
5+
"@fingerprintjs/conventional-changelog-dx-team": "^0.1.0",
6+
"conventional-changelog-conventionalcommits": "^7.0.2",
67
"semantic-release": "^19.0.5"
78
},
89
"license": "MIT"

0 commit comments

Comments
 (0)