Skip to content

Commit 1c40084

Browse files
Merge pull request #75 from contentstack/Enh/dx-1733
Updated node version in package publish workflow file
2 parents 107db6e + db61319 commit 1c40084

File tree

3 files changed

+12
-14
lines changed

3 files changed

+12
-14
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Checkout
12-
uses: actions/checkout@v3.5.3
12+
uses: actions/checkout@v4
1313
with:
1414
fetch-depth: 0
1515
- name: Setup Node.js
16-
uses: actions/setup-node@v3.7.0
16+
uses: actions/setup-node@v4
1717
with:
18-
node-version: "18.x"
18+
node-version: "22.x"
1919
- name: Installing dependencies
2020
run: npm install
2121
- name: Build
2222
run: npm run prepack
2323
- name: Upload dist
24-
uses: actions/upload-artifact@v3.1.2
24+
uses: actions/upload-artifact@v4
2525
with:
2626
name: lib
2727
path: lib
@@ -32,25 +32,25 @@ jobs:
3232
needs: build
3333
steps:
3434
- name: Checkout
35-
uses: actions/checkout@v3.5.3
35+
uses: actions/checkout@v4
3636
with:
3737
fetch-depth: 0
3838
- name: Setup Node.js
39-
uses: actions/setup-node@v3.7.0
39+
uses: actions/setup-node@v4
4040
with:
41-
node-version: "18.x"
41+
node-version: "22.x"
4242
- name: Installing dependencies
4343
run: npm install
4444
- name: Download dist
45-
uses: actions/download-artifact@v3
45+
uses: actions/download-artifact@v4
4646
with:
4747
name: lib
4848
path: lib
4949
- name: Display dirs
5050
run: ls -R
5151
- name: Release
5252
id: release-plugin
53-
uses: JS-DevTools/npm-publish@v2.2.0
53+
uses: JS-DevTools/npm-publish@v3
5454
with:
5555
token: ${{ secrets.NPM_TOKEN }}
5656
- name: github-release

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
![Node.js CI](https://github.com/contentstack/contentstack-cli-content-type/workflows/Node.js%20CI/badge.svg)
21
![npm](https://img.shields.io/npm/v/contentstack-cli-content-type)
32

43
## Description

src/core/content-type/formatting.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
import moment from 'moment'
2-
const urljoin = require('url-join')
3-
1+
import moment from 'moment'
2+
import urlJoin from 'url-join';
43
const TIME_FORMAT = 'L hh:mm:ss a'
54

65
export function date(date: any) {
@@ -32,7 +31,7 @@ export function urlPattern(contentType: any) {
3231
if (!contentType || !contentType.options) return 'Unknown'
3332
if (!contentType.options.url_pattern) return 'N/A'
3433

35-
return urljoin(contentType.options.url_prefix, contentType.options.url_pattern)
34+
return urlJoin(contentType.options.url_prefix, contentType.options.url_pattern)
3635
}
3736

3837
export function checked(value: boolean) {

0 commit comments

Comments
 (0)