Skip to content

Commit 14cce81

Browse files
committed
merge conflict
2 parents 13c4f8d + fdb8136 commit 14cce81

File tree

4 files changed

+74
-75
lines changed

4 files changed

+74
-75
lines changed

.github/workflows/demo.yml

Lines changed: 0 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +0,0 @@
1-
name: deploy demo
2-
3-
on:
4-
push:
5-
branches: ["main"]
6-
7-
# Allows you to run this workflow manually from the Actions tab
8-
workflow_dispatch:
9-
10-
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
11-
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
12-
concurrency:
13-
group: "pages"
14-
cancel-in-progress: false
15-
16-
jobs:
17-
sonarcloud:
18-
name: SonarCloud
19-
runs-on: ubuntu-latest
20-
steps:
21-
- uses: actions/checkout@v4
22-
with:
23-
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
24-
- name: SonarCloud Scan
25-
uses: SonarSource/sonarcloud-github-action@master
26-
env:
27-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
28-
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
29-
deploy:
30-
needs: sonarcloud
31-
environment:
32-
name: github-pages
33-
url: ${{ steps.deployment.outputs.page_url }}
34-
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
35-
permissions:
36-
contents: read
37-
pages: write
38-
id-token: write
39-
runs-on: ubuntu-latest
40-
steps:
41-
- uses: actions/checkout@v4
42-
- uses: actions/setup-node@v4
43-
- run: npm install
44-
- run: npm run build-all -- --base-href jquery-chart
45-
- uses: actions/configure-pages@v5
46-
- uses: actions/upload-pages-artifact@v3
47-
with:
48-
path: './dist/jquery-charts'
49-
- uses: actions/deploy-pages@v4

.github/workflows/main.yml

Lines changed: 15 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,20 @@
1-
name: publish libraries
1+
name: CI/CD
22
on:
3-
release:
4-
types: ["published"]
5-
6-
# Allows you to run this workflow manually from the Actions tab
7-
workflow_dispatch:
8-
3+
pull_request:
4+
branches: main
5+
types: [opened, synchronize, reopened]
6+
push:
7+
branches: main
98
jobs:
109
build:
1110
runs-on: ubuntu-latest
1211
steps:
13-
- uses: actions/checkout@v4
14-
# Setup .npmrc file to publish to npm
15-
- uses: actions/setup-node@v4
16-
with:
17-
node-version: '20.x'
18-
registry-url: 'https://registry.npmjs.org'
19-
scope: '@oneteme'
20-
- run: npm install
21-
- run: npm run build '@oneteme/jquery-core'
22-
- run: npm config ls
23-
- run: npm publish ./dist/oneteme/jquery-core --access public
24-
env:
25-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
26-
- run: npm run build '@oneteme/jquery-apexcharts'
27-
- run: npm publish ./dist/oneteme/jquery-apexcharts --access public
28-
env:
29-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
12+
- uses: actions/checkout@v4
13+
with:
14+
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
15+
- uses: actions/setup-node@v4
16+
with:
17+
node-version: 20
18+
- uses: oneteme/automation-scripts/.github/actions/sonar-npm-scan@main #see package.json: scripts.build
19+
env:
20+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

.github/workflows/release.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: tag release
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
core:
6+
type: boolean
7+
description: deploy jquery-core library
8+
apexcharts:
9+
type: boolean
10+
description: deploy jquery-apexcharts library
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
18+
- uses: actions/setup-node@v4
19+
with:
20+
node-version: 20
21+
- uses: oneteme/automation-scripts/.github/actions/sonar-npm-scan@main
22+
env:
23+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
24+
deploy:
25+
needs: build
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: actions/checkout@v4
29+
- uses: actions/setup-node@v4
30+
with:
31+
node-version: 20
32+
registry-url: 'https://registry.npmjs.org'
33+
scope: '@oneteme'
34+
- uses: oneteme/automation-scripts/.github/actions/npm-deploy@main
35+
if: ${{ inputs.core }}
36+
with:
37+
package: 'jqeury-core'
38+
env:
39+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
40+
- uses: oneteme/automation-scripts/.github/actions/npm-deploy@main
41+
if: ${{ inputs.apexcharts }}
42+
with:
43+
package: 'jqeury-apexcharts'
44+
env:
45+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
46+
- uses: oneteme/automation-scripts/.github/actions/npm-project-version@main
47+
id: prj_ver
48+
outputs: # take global project version
49+
version: ${{ steps.prj_ver.outputs.version }}
50+
release:
51+
needs: deploy
52+
runs-on: ubuntu-latest
53+
steps:
54+
- uses: oneteme/automation-scripts/.github/actions/create-release-notes@main
55+
with:
56+
version: ${{ needs.deploy.outputs.version }}
57+
env:
58+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
"scripts": {
1717
"ng": "ng",
1818
"start": "ng serve",
19-
"build": "ng build",
20-
"build-all": "ng build \"@oneteme/jquery-core\" && npm run build \"@oneteme/jquery-apexcharts\" && ng build",
19+
"build": "ng build \"@oneteme/jquery-core\" && ng build \"@oneteme/jquery-apexcharts\" && ng build",
2120
"watch": "ng build --watch --configuration development",
2221
"test": "ng test"
2322
},

0 commit comments

Comments
 (0)