Skip to content

Commit

Permalink
[CI/CD] Build & Release Fixes (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThuF authored Jun 22, 2024
1 parent 4df7484 commit 5a1e503
Show file tree
Hide file tree
Showing 7 changed files with 118 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2

registries:
npm-github:
type: npm-registry
url: https://npm.pkg.github.com
token: ${{ secrets.DEPENDABOT_TOKEN }}
replaces-base: true

updates:
- package-ecosystem: npm
directory: "/codbex-methods"
registries:
- npm-github
schedule:
interval: daily
open-pull-requests-limit: 10
labels:
- dependencies

- package-ecosystem: npm
directory: "/codbex-methods-data"
registries:
- npm-github
schedule:
interval: daily
open-pull-requests-limit: 10
labels:
- dependencies
13 changes: 13 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Build - Module

on:
push:
branches:
- main

jobs:
main:
uses: codbex/codbex-infra/.github/workflows/module-build.yaml@main
with:
packages-build: codbex-methods
secrets: inherit
13 changes: 13 additions & 0 deletions .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Pull Request - Module

on:
pull_request:
branches:
- main

jobs:
main:
uses: codbex/codbex-infra/.github/workflows/module-pull-request.yaml@main
with:
packages-build: codbex-methods
secrets: inherit
35 changes: 35 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Release - Module

on:
workflow_dispatch:
inputs:
release-version:
description: Release Version
required: true
default: 1.0.0

run-name: 'version set to ${{ inputs.release-version }} for release'

jobs:
main:
uses: codbex/codbex-infra/.github/workflows/module-release.yaml@main
with:
packages: codbex-methods,codbex-methods-data
packages-build: codbex-methods
release-version: ${{ inputs.release-version }}
release-content: |
## codbex-methods - ${{ inputs.release-version }}
Methods Management Module

## Installation

```
npm install @codbex/codbex-methods@${{ inputs.release-version }}
npm install @codbex/codbex-methods-data@${{ inputs.release-version }}
```

## Access points:

- [/services/web/codbex-methods/gen/](http://localhost:80/services/web/codbex-methods/gen/) - Admin Panel
secrets: inherit
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
11 changes: 11 additions & 0 deletions codbex-methods-data/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "@codbex/codbex-methods-data",
"version": "0.0.1",
"repository": {
"url": "https://github.com/codbex/codbex-methods.git",
"type": "git"
},
"publishConfig": {
"registry": "https://npm.pkg.github.com"
}
}
11 changes: 11 additions & 0 deletions codbex-methods/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "@codbex/codbex-methods",
"version": "0.0.1",
"repository": {
"url": "https://github.com/codbex/codbex-methods.git",
"type": "git"
},
"publishConfig": {
"registry": "https://npm.pkg.github.com"
}
}

0 comments on commit 5a1e503

Please sign in to comment.