Skip to content

Commit 98af160

Browse files
authored
Merge pull request #119 from datacrafts-io/fix/semantic-release
fix(releases): add npm token to publish on npm
2 parents 55bf675 + c063720 commit 98af160

File tree

4 files changed

+20
-1
lines changed

4 files changed

+20
-1
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,5 @@ jobs:
2323
- name: Release
2424
env:
2525
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
2627
run: npx semantic-release@17

.releaserc.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"plugins": [
3+
"@semantic-release/commit-analyzer",
4+
"@semantic-release/release-notes-generator",
5+
"@semantic-release/github",
6+
[
7+
"@semantic-release/npm",
8+
{
9+
"npmPublish": true
10+
}
11+
]
12+
]
13+
}

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,11 @@ Supports:
100100

101101
In order to commit in a conventional style conveniently you may run `npm run commit`.
102102

103+
## :warning: Disabling publishing to npm
104+
105+
There is a file [.releaserc.json](.releaserc.json) where you can disable publishing your project
106+
to npm on every new semantic release by setting `npmPublish` option to `false`
107+
103108
## 🎓 Learning Gatsby
104109

105110
Looking for more guidance? Full documentation for Gatsby lives [on the website](https://www.gatsbyjs.org/). Here are some places to start:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "gatsby-opinionated-starter",
33
"description": "A very opinionated TypeScript netlify-ready gatsby starter",
4-
"version": "1.1.0",
4+
"version": "1.1.0-semantically-versioned",
55
"author": "Yaroslav Kasperovych <ilovewindows96@gmail.com>",
66
"dependencies": {
77
"@types/react-helmet": "6.1.0",

0 commit comments

Comments
 (0)