Skip to content

Commit 0da2ac0

Browse files
authored
Merge pull request #6 from codesyntax/develop
release-it
2 parents d6ddce4 + 93a7d31 commit 0da2ac0

File tree

3 files changed

+27
-2
lines changed

3 files changed

+27
-2
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@ jobs:
1818
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
1919
- run: npm install
2020
- run: npm run build
21+
- run: npm install release-it
2122
- run: echo "//registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}" > .npmrc
22-
- run: npm publish --access=public
23+
- run: npm run release -- minor --ci
24+
# - run: npm publish --access=public
2325
env:
2426
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2527
NPM_TOKEN: ${{ secrets.NPM_TOKEN}}

.release-it.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"npm": {
3+
"publish": true
4+
},
5+
"git": {
6+
"changelog": "npx auto-changelog --stdout --commit-limit false -u --template https://raw.githubusercontent.com/release-it/release-it/master/templates/changelog-compact.hbs",
7+
"tagName": "${version}",
8+
"commitMessage": "Automated release ${version}",
9+
"requireBranch": "main",
10+
"requireCleanWorkingDir": false,
11+
"git.requireCommits": true
12+
},
13+
"github": {
14+
"release": true,
15+
"releaseName": "${version}",
16+
"releaseNotes": "npx auto-changelog --stdout --commit-limit false -u --template https://raw.githubusercontent.com/release-it/release-it/master/templates/changelog-compact.hbs"
17+
},
18+
19+
"hooks": {
20+
"after:bump": "npx auto-changelog --commit-limit false -p"
21+
}
22+
}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"clean": "rimraf dist",
1616
"test": "echo \"Error: no test specified\" && exit 1",
1717
"storybook": "start-storybook -p 6006",
18-
"build-storybook": "build-storybook"
18+
"build-storybook": "build-storybook",
19+
"release": "release-it"
1920
},
2021
"keywords": [
2122
"ionic",

0 commit comments

Comments
 (0)