Skip to content

Commit

Permalink
Merge pull request #87 from kuzzleio/6-dev
Browse files Browse the repository at this point in the history
Add semantic, remove peerDeps
  • Loading branch information
rolljee authored Sep 18, 2023
2 parents a66815a + 5ad4acf commit e9cc46f
Show file tree
Hide file tree
Showing 8 changed files with 16,503 additions and 5,503 deletions.
3 changes: 3 additions & 0 deletions .commitlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["@commitlint/config-conventional"]
}
3 changes: 3 additions & 0 deletions .cz.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"path": "./node_modules/cz-conventional-changelog"
}
20 changes: 4 additions & 16 deletions .github/workflows/pull_request.workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,10 @@ on: [pull_request]
jobs:
tests:
name: Tests
runs-on: ubuntu-18.04
timeout-minutes: 20
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- uses: actions/[email protected]
with:
node-version: "12"
node-version: "18"
- uses: ./.github/actions/tests
38 changes: 38 additions & 0 deletions .github/workflows/push_branches.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Push checks

on:
push:
branches:
- master
- beta

jobs:
release:
name: Release process
runs-on: ubuntu-20.04
permissions:
contents: write
issues: write
pull-requests: write
packages: write
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "lts/*"
registry-url: "https://registry.npmjs.org"
scope: '@kuzzleio'

- name: Install dependencies
run: npm ci

- name: Release
env:
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GHP }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
SEMANTIC_RELEASE_NPM_PUBLISH: "true"
SEMANTIC_RELEASE_SLACK_WEBHOOK: ${{ secrets.SEMANTIC_RELEASE_SLACK_WEBHOOK }}
run: npx semantic-release
58 changes: 0 additions & 58 deletions .github/workflows/push_master.workflow.yml

This file was deleted.

7 changes: 7 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": ["semantic-release-config-kuzzle"],
"branches": [
"master",
{ "name": "beta", "prerelease": true }
]
}
Loading

0 comments on commit e9cc46f

Please sign in to comment.