chore: enable release-please & add it to CI (#1155)

* enable release-please & add it to CI
* use manifest config file
* increment only patch
This commit is contained in:
Sasha 2023-02-09 23:13:51 +01:00 committed by GitHub
parent 79838d8c69
commit 21ae7ef182
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 62 additions and 0 deletions

View File

@ -203,3 +203,35 @@ jobs:
with:
name: nwaku-master-logs
path: packages/tests/log/
maybe-release:
name: release
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
needs: [check, proto, browser, node]
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
command: manifest
monorepo-tags: true
- uses: actions/checkout@v3
if: ${{ steps.release.outputs.release_created }}
- uses: actions/setup-node@v3
if: ${{ steps.release.outputs.release_created }}
with:
node-version: ${{ env.NODE_JS }}
registry-url: "https://registry.npmjs.org"
- run: npm install
if: ${{ steps.release.outputs.release_created }}
- run: npm run build
if: ${{ steps.release.outputs.release_created }}
- run: npm publish --workspaces --next --access public
if: ${{ steps.release.outputs.release_created }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

View File

@ -0,0 +1,11 @@
{
"packages/utils": "0.0.1",
"packages/proto": "0.0.2",
"packages/interfaces": "0.0.7",
"packages/enr": "0.0.5",
"packages/peer-exchange": "0.0.3",
"packages/core": "0.0.10",
"packages/dns-discovery": "0.0.5",
"packages/message-encryption": "0.0.9",
"packages/create": "0.0.6"
}

View File

@ -0,0 +1,19 @@
{
"bootstrap-sha": "13183350fac680be8c0e89ca3dc3951330b8b7c0",
"plugins": ["node-workspace", "sentence-case"],
"release-type": "node",
"separate-pull-requests": false,
"bump-patch-for-minor-pre-major": true,
"group-pull-request-title-pattern": "chore: release ${branch}",
"packages": {
"packages/utils": {},
"packages/proto": {},
"packages/interfaces": {},
"packages/enr": {},
"packages/peer-exchange": {},
"packages/core": {},
"packages/dns-discovery": {},
"packages/message-encryption": {},
"packages/create": {}
}
}