File tree Expand file tree Collapse file tree 3 files changed +12
-14
lines changed
Expand file tree Collapse file tree 3 files changed +12
-14
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 1- import moment from 'moment'
2- const urljoin = require ( 'url-join' )
3-
1+ import moment from 'moment'
2+ import urlJoin from 'url-join' ;
43const TIME_FORMAT = 'L hh:mm:ss a'
54
65export 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
3837export function checked ( value : boolean ) {
You can’t perform that action at this time.
0 commit comments