Skip to content

Commit 2bbe934

Browse files
authored
Merge pull request #12 from CheckPointSW/chkp-nirm-patch-1
Update release.yml
2 parents 1ca5f0b + 6cfe791 commit 2bbe934

File tree

1 file changed

+9
-21
lines changed

1 file changed

+9
-21
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -13,38 +13,26 @@ jobs:
1313
node-version: '22.x'
1414
registry-url: 'https://registry.npmjs.org'
1515

16-
- name: Install dependencies
17-
run: npm install
18-
19-
- name: Set version from tag in infra
16+
- name: building infra
2017
run: |
2118
cd packages/infra
19+
npm install
2220
VERSION="${GITHUB_REF_NAME#v}"
2321
npm version "$VERSION"
22+
npm run build
23+
npm publish --access public
2424
env:
2525
GITHUB_REF_NAME: ${{ github.ref_name }}
26+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2627

27-
- name: Set version from tag in management
28+
- name: building management
2829
run: |
2930
cd packages/management
31+
npm install
3032
VERSION="${GITHUB_REF_NAME#v}"
3133
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
4835
npm publish --access public
4936
env:
37+
GITHUB_REF_NAME: ${{ github.ref_name }}
5038
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)