ol-base-components 2.8.19 → 2.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,81 @@
1
+ name: CI/CD Pipeline
2
+
3
+ on:
4
+ push:
5
+ branches: [ main, master ]
6
+ tags: [ 'v*' ]
7
+ pull_request:
8
+ branches: [ main, master ]
9
+
10
+ jobs:
11
+ test:
12
+ runs-on: ubuntu-latest
13
+
14
+ strategy:
15
+ matrix:
16
+ node-version: [16.x, 18.x, 20.x]
17
+
18
+ steps:
19
+ - name: Checkout code
20
+ uses: actions/checkout@v4
21
+
22
+ - name: Setup Node.js ${{ matrix.node-version }}
23
+ uses: actions/setup-node@v4
24
+ with:
25
+ node-version: ${{ matrix.node-version }}
26
+ cache: 'npm'
27
+
28
+ - name: Install dependencies
29
+ run: npm ci
30
+
31
+ - name: Run linter
32
+ run: npm run lint
33
+
34
+ - name: Build project
35
+ run: npm run build
36
+
37
+ - name: Upload build artifacts
38
+ uses: actions/upload-artifact@v4
39
+ with:
40
+ name: build-files-${{ matrix.node-version }}
41
+ path: dist/
42
+
43
+ publish:
44
+ needs: test
45
+ runs-on: ubuntu-latest
46
+ if: startsWith(github.ref, 'refs/tags/v')
47
+
48
+ steps:
49
+ - name: Checkout code
50
+ uses: actions/checkout@v4
51
+
52
+ - name: Setup Node.js
53
+ uses: actions/setup-node@v4
54
+ with:
55
+ node-version: '18'
56
+ registry-url: 'https://registry.npmjs.org'
57
+
58
+ - name: Install dependencies
59
+ run: npm ci
60
+
61
+ - name: Build project
62
+ run: npm run build
63
+
64
+ - name: Publish to npm
65
+ run: npm publish
66
+ env:
67
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
68
+
69
+ - name: Create GitHub Release
70
+ uses: actions/create-release@v1
71
+ env:
72
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
73
+ with:
74
+ tag_name: ${{ github.ref }}
75
+ release_name: Release ${{ github.ref }}
76
+ body: |
77
+ ## Changes in this Release
78
+ - Automated release via GitHub Actions
79
+ - Built and tested on Node.js 18
80
+ draft: false
81
+ prerelease: false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ol-base-components",
3
- "version": "2.8.19",
3
+ "version": "2.9.0",
4
4
  "private": false,
5
5
  "main": "src/package/index.js",
6
6
  "bin": {