Skip to content

Commit 0c630c6

Browse files
feat: test npm publish
1 parent 4febdbf commit 0c630c6

2 files changed

Lines changed: 17 additions & 4 deletions

File tree

.releaserc.json

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
{
2-
"branches": ["main"],
2+
"branches": [
3+
"main"
4+
],
35
"plugins": [
46
"@semantic-release/commit-analyzer",
57
"@semantic-release/release-notes-generator",
6-
"@semantic-release/npm",
8+
[
9+
"@semantic-release/npm",
10+
{
11+
"npmPublish": true
12+
}
13+
],
714
"@semantic-release/github",
815
[
916
"@semantic-release/changelog",
@@ -14,7 +21,10 @@
1421
[
1522
"@semantic-release/git",
1623
{
17-
"assets": ["package.json", "CHANGELOG.md"],
24+
"assets": [
25+
"package.json",
26+
"CHANGELOG.md"
27+
],
1828
"message": "chore(release): ${nextRelease.version} [skip ci]"
1929
}
2030
]

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
"tryappstack": "./bin/cli.js",
1818
"tas": "./bin/cli.js"
1919
},
20+
"publishConfig": {
21+
"access": "public"
22+
},
2023
"files": [
2124
"bin/",
2225
"lib/",
@@ -69,4 +72,4 @@
6972
"prettier --write"
7073
]
7174
}
72-
}
75+
}

0 commit comments

Comments
 (0)