rbac-manager 1.0.0 → 1.0.1

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,36 @@
1
+
2
+ name: Package CI
3
+
4
+ on:
5
+ push:
6
+ branches: [master]
7
+ pull_request:
8
+ branches: [master]
9
+
10
+ permissions:
11
+ contents: read
12
+
13
+ jobs:
14
+ build-and-test:
15
+ runs-on: ubuntu-latest
16
+
17
+ steps:
18
+ - name: Checkout code
19
+ uses: actions/checkout@v6
20
+
21
+ - name: Setup Node.js
22
+ uses: actions/setup-node@v6
23
+ with:
24
+ node-version: 24
25
+
26
+ - name: Install dependencies
27
+ run: npm ci
28
+
29
+ - name: Run tests
30
+ run: npm test --if-present
31
+
32
+ - name: Build package
33
+ run: npm run build
34
+
35
+ - name: Validate npm package
36
+ run: npm pack --dry-run
@@ -1,29 +1,60 @@
1
- name: Publish to npm
2
-
3
- on:
4
- push:
5
- tags:
6
- - "v*"
7
-
8
- permissions:
9
- contents: read
10
- id-token: write
11
-
12
- jobs:
13
- publish:
14
- runs-on: ubuntu-latest
15
- steps:
16
- - uses: actions/checkout@v4
17
-
18
- - uses: actions/setup-node@v4
19
- with:
20
- node-version: 22
21
- registry-url: https://registry.npmjs.org
22
-
23
- # npm's trusted publishing requires a recent npm CLI.
24
- - run: npm install --global npm@latest
25
-
26
- - run: npm ci
27
- - run: npm run typecheck
28
- - run: npm run build
29
- - run: npm publish --access public --provenance
1
+
2
+ name: Publish npm Package
3
+
4
+ on:
5
+ push:
6
+ tags:
7
+ - "v*"
8
+
9
+ permissions:
10
+ contents: read
11
+ id-token: write
12
+
13
+ jobs:
14
+ publish:
15
+ runs-on: ubuntu-latest
16
+
17
+ steps:
18
+ - name: Checkout repository
19
+ uses: actions/checkout@v6
20
+
21
+ - name: Setup Node.js
22
+ uses: actions/setup-node@v6
23
+ with:
24
+ node-version: 24
25
+ registry-url: https://registry.npmjs.org
26
+ package-manager-cache: false
27
+
28
+ - name: Verify npm version
29
+ run: |
30
+ npm install --global npm@latest
31
+ npm --version
32
+ node --version
33
+
34
+ - name: Install dependencies
35
+ run: npm ci
36
+
37
+ - name: Validate version
38
+ shell: bash
39
+ run: |
40
+ PACKAGE_VERSION=$(node -p "require('./package.json').version")
41
+ TAG_VERSION="${GITHUB_REF_NAME#v}"
42
+
43
+ if [ "$PACKAGE_VERSION" != "$TAG_VERSION" ]; then
44
+ echo "Version mismatch!"
45
+ echo "package.json: $PACKAGE_VERSION"
46
+ echo "Git tag: $TAG_VERSION"
47
+ exit 1
48
+ fi
49
+
50
+ - name: Run tests
51
+ run: npm test --if-present
52
+
53
+ - name: Build package
54
+ run: npm run build
55
+
56
+ - name: Verify package
57
+ run: npm pack --dry-run
58
+
59
+ - name: Publish to npm
60
+ run: npm publish --access public
package/package.json CHANGED
@@ -1,10 +1,14 @@
1
1
  {
2
2
  "name": "rbac-manager",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Enterprise-grade, highly customizable, frontend-only RBAC and Masters template with pluggable API adapters",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",
7
7
  "types": "./dist/esm/index.d.ts",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "https://github.com/knight-456/role-based-access-control-project-template"
11
+ },
8
12
  "exports": {
9
13
  ".": {
10
14
  "types": "./dist/esm/index.d.ts",