Skip to content

Commit ce40ff6

Browse files
Merge pull request #1040 from devtron-labs/release-candidate-v0.46.0
feat: release candidate v0.46.0
2 parents 526d84f + 1e0b905 commit ce40ff6

297 files changed

Lines changed: 12806 additions & 9817 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eslintignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,3 @@ src/Common/Select/Select.tsx
5353
src/Common/ServerError.ts
5454
src/Common/TippyCustomized.tsx
5555
src/Common/ToastBody.tsx
56-
src/Common/Types.ts
Lines changed: 42 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,47 @@
11
name: Node.js Package
22

33
on:
4-
release:
5-
types: [created]
4+
release:
5+
types: [created]
66

77
jobs:
8-
build-and-publish:
9-
name: Build and Publish to NPM Registry
10-
11-
runs-on: ubuntu-latest
12-
13-
steps:
14-
- name: Checkout repository
15-
uses: actions/checkout@v4
16-
17-
- name: Use Node.js
18-
uses: actions/setup-node@v4
19-
with:
20-
node-version-file: '.nvmrc'
21-
cache: 'npm'
22-
registry-url: 'https://registry.npmjs.org/'
23-
24-
- name: Install dependencies
25-
run: npm ci
26-
27-
- name: Execute test cases
28-
run: npm test
29-
30-
- name: Build Lib
31-
run: npm run build-lib
32-
33-
- name: Publish to NPM Registry
34-
run: npm publish --access public
35-
env:
36-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
8+
build-and-publish:
9+
name: Build and Publish to NPM Registry
10+
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
17+
- name: Use Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version-file: '.nvmrc'
21+
cache: 'npm'
22+
registry-url: 'https://registry.npmjs.org/'
23+
24+
- name: Install dependencies
25+
run: npm ci
26+
27+
- name: Execute test cases
28+
run: npm test
29+
30+
- name: Build Lib
31+
run: npm run build-lib
32+
33+
- name: Publish to NPM Registry
34+
run: |
35+
VERSION=$(node -p "require('./package.json').version")
36+
37+
if [[ $VERSION == *"-beta."* ]]; then
38+
npm publish --access public --tag beta
39+
40+
elif [[ $VERSION == *"-"* ]]; then
41+
npm publish --access public --tag next
42+
43+
else
44+
npm publish --access public
45+
fi
46+
env:
47+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v22
1+
v24.14.1

0 commit comments

Comments
 (0)