Skip to content

Commit d140595

Browse files
committed
chore(build) setting up semantic-release
1 parent 7eb94ee commit d140595

File tree

3 files changed

+18
-10
lines changed

3 files changed

+18
-10
lines changed

.github/workflows/node.js.yml

+5
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,8 @@ jobs:
2828
cache: 'yarn'
2929
- run: yarn install
3030
- run: yarn test
31+
- name: Semantic release
32+
uses: cycjimmy/semantic-release-action@v3
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.releaserc.json

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"branches": ["master","wip/react-18"],
3+
"plugins": [
4+
"@semantic-release/commit-analyzer",
5+
"@semantic-release/release-notes-generator",
6+
"@semantic-release/changelog",
7+
"@semantic-release/npm",
8+
"@semantic-release/git"
9+
],
10+
"dryRun": true,
11+
"ci": true,
12+
"debug": true
13+
}

package.json

-10
Original file line numberDiff line numberDiff line change
@@ -167,16 +167,6 @@
167167
"files": [
168168
"dist"
169169
],
170-
"release": {
171-
"plugins": [
172-
"@semantic-release/commit-analyzer",
173-
"@semantic-release/release-notes-generator",
174-
"@semantic-release/changelog",
175-
"@semantic-release/npm",
176-
"@semantic-release/git"
177-
],
178-
"branch": "master"
179-
},
180170
"commitlint": {
181171
"extends": [
182172
"@commitlint/config-conventional"

0 commit comments

Comments
 (0)