File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : Publish package to npmjs registry
2+ on :
3+ release :
4+ types : [published]
5+
6+ jobs :
7+ publish-npm :
8+ runs-on : ubuntu-latest
9+ permissions :
10+ contents : read
11+ id-token : write
12+ steps :
13+ - uses : actions/checkout@v7
14+ with :
15+ ref : ${{ github.event.release.tag_name }}
16+ persist-credentials : false
17+ - uses : actions/setup-node@v7
18+ with :
19+ node-version : 24
20+ registry-url : https://registry.npmjs.org/
21+ cache : ' npm'
22+ - run : npm ci
23+ - name : Update npm
24+ run : npm install -g npm@latest
25+ - name : Release
26+ run : npm publish --access public --tag ${{ github.event.release.prerelease && 'beta' || 'latest' }}
27+
28+ publish-github :
29+ runs-on : ubuntu-latest
30+ permissions :
31+ contents : read
32+ packages : write
33+ steps :
34+ - uses : actions/checkout@v7
35+ with :
36+ ref : ${{ github.event.release.tag_name }}
37+ persist-credentials : false
38+ - uses : actions/setup-node@v7
39+ with :
40+ node-version : 24
41+ registry-url : https://npm.pkg.github.com/
42+ cache : ' npm'
43+ - run : npm ci
44+ - name : Update npm
45+ run : npm install -g npm@latest
46+ - name : Release
47+ run : npm publish
48+ env :
49+ NODE_AUTH_TOKEN : ${{ github.token }}
Original file line number Diff line number Diff line change 8585 "typescript" : " ~5.7.3" ,
8686 "ts-node" : " ^10.9.2"
8787 },
88- "homepage" : " https://github.com/contentstack/contentstack-typescript"
88+ "homepage" : " https://github.com/contentstack/contentstack-typescript" ,
89+ "repository" : {
90+ "type" : " git" ,
91+ "url" : " git+https://github.com/contentstack/contentstack-typescript.git"
92+ }
8993}
You can’t perform that action at this time.
0 commit comments