diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..1a25764 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,25 @@ +on: + pull_request: + branches: + - main + types: [closed] + +jobs: + release: + runs-on: ubuntu-latest + if: github.event.pull_request.merged == true + steps: + - uses: actions/checkout@v2 + with: + 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 install release-it + - run: echo "//registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}" > .npmrc + - run: npm run release -- minor --ci + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN}} diff --git a/.release-it.json b/.release-it.json new file mode 100644 index 0000000..bd62b47 --- /dev/null +++ b/.release-it.json @@ -0,0 +1,22 @@ +{ + "npm": { + "publish": true + }, + "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": "main", + "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" + } +} diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..7c1ad5b --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,54 @@ +### Changelog + +All notable changes to this project will be documented in this file. Dates are displayed in UTC. + +Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). + +#### [0.1.0](https://github.com/codesyntax/volto-listingadvanced-variation/compare/0.0.5...0.1.0) + +#### [0.0.5](https://github.com/codesyntax/volto-listingadvanced-variation/compare/0.0.4...0.0.5) + +> 28 October 2021 + +- always release minor versions [`#13`](https://github.com/codesyntax/volto-listingadvanced-variation/pull/13) +- Automated release 0.0.5 [`413e058`](https://github.com/codesyntax/volto-listingadvanced-variation/commit/413e05870fce8e9b56fd548b97747cc4e4367e04) +- always minor versions [`ddc6e94`](https://github.com/codesyntax/volto-listingadvanced-variation/commit/ddc6e940437a8f5dd775ff1c5b304c2d1241abe2) + +#### [0.0.4](https://github.com/codesyntax/volto-listingadvanced-variation/compare/0.0.3...0.0.4) + +> 28 October 2021 + +- Develop [`#12`](https://github.com/codesyntax/volto-listingadvanced-variation/pull/12) +- another try [`#11`](https://github.com/codesyntax/volto-listingadvanced-variation/pull/11) +- Develop [`#10`](https://github.com/codesyntax/volto-listingadvanced-variation/pull/10) +- metadata [`e87e0df`](https://github.com/codesyntax/volto-listingadvanced-variation/commit/e87e0df648b7f10b464a63f60ac05f0d4297a05e) +- publishConfig [`0bd7e45`](https://github.com/codesyntax/volto-listingadvanced-variation/commit/0bd7e45de3bdbdb25168967ae77c54facc0c8dd9) +- rework [`45a8ea8`](https://github.com/codesyntax/volto-listingadvanced-variation/commit/45a8ea80de08474fc3487bf699168c1d97390b18) +- Automated release 0.0.4 [`e27d0dc`](https://github.com/codesyntax/volto-listingadvanced-variation/commit/e27d0dc82be415aead1e55912a40400f238eb840) + +#### [0.0.3](https://github.com/codesyntax/volto-listingadvanced-variation/compare/0.0.2...0.0.3) + +> 28 October 2021 + +- Automated release 0.0.3 [`55c1153`](https://github.com/codesyntax/volto-listingadvanced-variation/commit/55c11532e568334b9d9d9ac68166e72a5c4d10c6) + +#### 0.0.2 + +> 28 October 2021 + +- main [`#9`](https://github.com/codesyntax/volto-listingadvanced-variation/pull/9) +- releases when in master [`#8`](https://github.com/codesyntax/volto-listingadvanced-variation/pull/8) +- install release-it [`#7`](https://github.com/codesyntax/volto-listingadvanced-variation/pull/7) +- Develop [`#6`](https://github.com/codesyntax/volto-listingadvanced-variation/pull/6) +- release! [`#4`](https://github.com/codesyntax/volto-listingadvanced-variation/pull/4) +- rel [`#3`](https://github.com/codesyntax/volto-listingadvanced-variation/pull/3) +- readme [`#2`](https://github.com/codesyntax/volto-listingadvanced-variation/pull/2) +- Test auto-release [`#1`](https://github.com/codesyntax/volto-listingadvanced-variation/pull/1) +- initial commit [`2adf33e`](https://github.com/codesyntax/volto-listingadvanced-variation/commit/2adf33ed5c4c794a5d458e598511bc47e457beb7) +- release-it config [`787413a`](https://github.com/codesyntax/volto-listingadvanced-variation/commit/787413a581b00adecf9a5afee1e815218f1baba4) +- reowkr [`4d92499`](https://github.com/codesyntax/volto-listingadvanced-variation/commit/4d9249959c481a05f2c3d6675b97e179b2632d27) +- autorelease config [`13d7f99`](https://github.com/codesyntax/volto-listingadvanced-variation/commit/13d7f994659ad2ca32fd7240f007ff14102ca6e2) +- reale [`59954b9`](https://github.com/codesyntax/volto-listingadvanced-variation/commit/59954b94e9dcaeffd137cee9cab6a30032469ac7) +- Automated release 0.0.2 [`8d49ae2`](https://github.com/codesyntax/volto-listingadvanced-variation/commit/8d49ae29b8015eba0da272f680653bee453807db) +- reowkr [`35886f7`](https://github.com/codesyntax/volto-listingadvanced-variation/commit/35886f7143486776e8cb3a68b31f9a7b9b0102aa) +- Initial commit [`cb4bf07`](https://github.com/codesyntax/volto-listingadvanced-variation/commit/cb4bf07aa8802ab01d400965522587e169a8fc9c) diff --git a/README.md b/README.md index 8412508..684ece5 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # volto-listingadvanced-variation Volto addon to add an additional variation to the default listing block with advanced features + +Auto diff --git a/package.json b/package.json index 32da33e..439f310 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@codesyntax/volto-listingadvanced-variation", - "version": "0.0.1", + "version": "0.2.0", "description": "volto-listingadvanced-variation: Volto add-on", "main": "src/index.js", "license": "MIT", @@ -11,5 +11,23 @@ "volto", "plone", "react" - ] -} \ No newline at end of file + ], + "scripts": { + "release": "release-it" + }, + "repository": { + "type": "git", + "url": "git+ssh://git@github.com/codesyntax/volto-listingadvanced-variation.git" + }, + "dependencies": { + "release-it": "^14.11.6" + }, + "bugs": { + "url": "https://github.com/codesyntax/volto-listingadvanced-variation/issues" + }, + "homepage": "https://github.com/codesyntax/volto-listingadvanced-variation#readme", + "author": "Ion Lizarazu ", + "publishConfig": { + "access": "public" + } +}