File tree Expand file tree Collapse file tree 1 file changed +9
-21
lines changed Expand file tree Collapse file tree 1 file changed +9
-21
lines changed Original file line number Diff line number Diff line change @@ -13,38 +13,26 @@ jobs:
13
13
node-version: '22.x'
14
14
registry-url: 'https://registry.npmjs.org'
15
15
16
- - name: Install dependencies
17
- run: npm install
18
-
19
- - name: Set version from tag in infra
16
+ - name: building infra
20
17
run: |
21
18
cd packages/infra
19
+ npm install
22
20
VERSION="${GITHUB_REF_NAME#v}"
23
21
npm version "$VERSION"
22
+ npm run build
23
+ npm publish --access public
24
24
env:
25
25
GITHUB_REF_NAME: ${{ github.ref_name }}
26
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
26
27
27
- - name: Set version from tag in management
28
+ - name: building management
28
29
run: |
29
30
cd packages/management
31
+ npm install
30
32
VERSION="${GITHUB_REF_NAME#v}"
31
33
npm version "$VERSION"
32
- env:
33
- GITHUB_REF_NAME: ${{ github.ref_name }}
34
-
35
- - name: Build packages
36
- run: npm run build
37
-
38
- - name: Publish infra package
39
- run: |
40
- cd packages/infra
41
- npm publish --access public
42
- env:
43
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
44
-
45
- - name: Publish management package
46
- run: |
47
- cd packages/management
34
+ npm run build
48
35
npm publish --access public
49
36
env:
37
+ GITHUB_REF_NAME: ${{ github.ref_name }}
50
38
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments