Skip to content

Commit

Permalink
release-it config
Browse files Browse the repository at this point in the history
  • Loading branch information
erral committed Oct 28, 2021
1 parent 13d7f99 commit 787413a
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 13 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
name: Node.js Package
on:
release:
types: [created]
jobs:
build:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v2
with:
node-version: "12.x"
registry-url: "https://registry.npmjs.org"
fetch-depth: 0
- name: git config
run: |
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
- run: npm install
- run: npm publish
- run: npm run release
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
deploy:
script:
- echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
- npm run release
22 changes: 22 additions & 0 deletions .release-it.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"npm": {
"publish": false
},
"git": {
"changelog": "npx auto-changelog --stdout --commit-limit false -u --template https://github.com/raw/release-it/release-it/master/templates/changelog-compact.hbs",
"tagName": "${version}",
"commitMessage": "Automated release ${version}",
"requireBranch": "develop",
"requireCleanWorkingDir": false,
"git.requireCommits": true
},
"github": {
"release": true,
"releaseName": "${version}",
"releaseNotes": "npx auto-changelog --stdout --commit-limit false -u --template https://github.com/raw/release-it/release-it/master/templates/changelog-compact.hbs"
},

"hooks": {
"after:bump": "npx auto-changelog --commit-limit false -p"
}
}
11 changes: 9 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,12 @@
"volto",
"plone",
"react"
]
}
],
"scripts": {
"release": "release-it"
},
"repository": {
"type": "git",
"url": "git@github.com:codesyntax/volto-listingadvanced-variation"
}
}

0 comments on commit 787413a

Please sign in to comment.