@ciscode/authentication-kit 1.0.33 → 1.1.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,36 @@
1
+ name: CI
2
+
3
+ on:
4
+ pull_request:
5
+ branches: [master, develop]
6
+ push:
7
+ branches: [develop]
8
+
9
+ permissions:
10
+ contents: read
11
+
12
+ jobs:
13
+ ci:
14
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - name: Checkout
17
+ uses: actions/checkout@v4
18
+
19
+ - name: Use Node.js
20
+ uses: actions/setup-node@v4
21
+ with:
22
+ node-version: 22
23
+ cache: npm
24
+ registry-url: https://registry.npmjs.org/
25
+
26
+ - name: Install dependencies
27
+ run: npm ci
28
+
29
+ - name: Lint
30
+ run: npm run lint --if-present
31
+
32
+ - name: Test
33
+ run: npm test --if-present
34
+
35
+ - name: Build
36
+ run: npm run build --if-present
@@ -0,0 +1,30 @@
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
+ cache: npm
23
+ - name: Install dependencies
24
+ run: npm ci
25
+ - name: Build library
26
+ run: npm run build:lib --if-present
27
+ - name: Publish to npm
28
+ run: npm publish --access public --provenance
29
+ env:
30
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
package/package.json CHANGED
@@ -1,12 +1,19 @@
1
1
  {
2
2
  "name": "@ciscode/authentication-kit",
3
- "publishConfig": { "access": "public"},
4
- "version": "1.0.33",
3
+ "publishConfig": {
4
+ "access": "public"
5
+ },
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/CISCODE-MA/authentication-kit.git"
9
+ },
10
+ "version": "1.1.0",
5
11
  "description": "A login library with local login, Microsoft Entra ID authentication, password reset, and roles/permissions for multi-tenant applications.",
6
12
  "main": "src/index.js",
7
13
  "scripts": {
8
14
  "start": "node src/index.js",
9
- "test": "echo \"No tests defined\" && exit 0"
15
+ "test": "echo \"No tests defined\" && exit 0",
16
+ "release": "semantic-release"
10
17
  },
11
18
  "keywords": [
12
19
  "login",
@@ -31,5 +38,8 @@
31
38
  "passport": "^0.6.0",
32
39
  "passport-azure-ad-oauth2": "^0.0.4",
33
40
  "passport-local": "^1.0.0"
41
+ },
42
+ "devDependencies": {
43
+ "semantic-release": "^25.0.2"
34
44
  }
35
- }
45
+ }
@@ -1,38 +0,0 @@
1
- name: CD - Release
2
-
3
- on:
4
- push:
5
- branches: [main]
6
-
7
- permissions:
8
- contents: write
9
- issues: write
10
- pull-requests: write
11
-
12
- jobs:
13
- release:
14
- runs-on: ubuntu-latest
15
- steps:
16
- - name: Checkout
17
- uses: actions/checkout@v4
18
- with:
19
- fetch-depth: 0
20
-
21
- - name: Use Node.js
22
- uses: actions/setup-node@v4
23
- with:
24
- node-version: 22
25
- cache: npm
26
- registry-url: https://registry.npmjs.org/
27
-
28
- - name: Install dependencies
29
- run: npm ci
30
-
31
- - name: Build library
32
- run: npm run build:lib
33
-
34
- - name: Release
35
- env:
36
- NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
37
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
38
- run: npm run release