@ludeo/cloud-common 1.1.98 → 1.1.100

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.
@@ -7,11 +7,18 @@ on:
7
7
  push:
8
8
  branches:
9
9
  - develop
10
+ workflow_call:
11
+
12
+ permissions:
13
+ id-token: write
14
+ contents: write
10
15
 
11
16
  jobs:
12
17
  build:
13
18
  if: github.ref != 'refs/heads/develop' # Skip build on develop branch
14
19
  runs-on: ubuntu-latest
20
+ env:
21
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_CI }}
15
22
 
16
23
  steps:
17
24
  - name: Checkout code
@@ -21,10 +28,11 @@ jobs:
21
28
  uses: actions/setup-node@v4
22
29
  with:
23
30
  node-version: "20"
31
+ registry-url: 'https://registry.npmjs.org/'
24
32
 
25
33
  - name: 🔐 Login to Ludeo NPM
26
34
  run: |
27
- npm config set @ludeo:registry https://registry.npmjs.org/ && npm config set '//registry.npmjs.org/:_authToken' ${{ secrets.NPM_TOKEN }}
35
+ npm config set @ludeo:registry https://registry.npmjs.org/ && npm config set '//registry.npmjs.org/:_authToken' ${{ secrets.NPM_TOKEN_CI }}
28
36
 
29
37
  - name: 🏗️ Install dependencies
30
38
  run: npm install
@@ -60,6 +68,8 @@ jobs:
60
68
  publish:
61
69
  if: github.ref == 'refs/heads/develop'
62
70
  runs-on: ubuntu-latest
71
+ env:
72
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_CI }}
63
73
 
64
74
  steps:
65
75
  - name: Checkout code
@@ -69,10 +79,7 @@ jobs:
69
79
  uses: actions/setup-node@v4
70
80
  with:
71
81
  node-version: "20"
72
-
73
- - name: 🔐 Login to Ludeo NPM
74
- run: |
75
- npm config set @ludeo:registry https://registry.npmjs.org/ && npm config set '//registry.npmjs.org/:_authToken' ${{ secrets.NPM_TOKEN }}
82
+ registry-url: 'https://registry.npmjs.org/'
76
83
 
77
84
  - name: 🏗️ Install dependencies
78
85
  run: npm install