File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,12 +11,14 @@ jobs:
1111 runs-on : ubuntu-latest
1212
1313 permissions :
14- contents : write # Only read permissions for safety
15- packages : write # Allow publishing to NPM
14+ contents : write # Needed to push tags
15+ packages : write # Allow publishing to NPM
1616
1717 steps :
1818 - name : 📦 Checkout code
1919 uses : actions/checkout@v4
20+ with :
21+ fetch-depth : 0 # ensure full history for tags
2022
2123 - name : 🧰 Setup Node.js
2224 uses : actions/setup-node@v4
3840 files : ./coverage/lcov/coverage.xml
3941 token : ${{ secrets.CODECOV_TOKEN }}
4042 fail_ci_if_error : true
41-
4243
4344 - name : 🔍 Get current version
4445 id : version_info
@@ -62,16 +63,16 @@ jobs:
6263 git add package.json package-lock.json
6364 git commit -m "chore: release ${{ steps.version_step.outputs.version }}"
6465 git tag -a ${{ steps.version_step.outputs.version }} -m "Release ${{ steps.version_step.outputs.version }}"
65-
6666 git push origin master --follow-tags
6767
68+
69+ - name : 🧐 Preview npm package contents
70+ run : |
71+ echo "Previewing npm package contents for version ${{ steps.version_step.outputs.version }}..."
72+ npm pack --dry-run
73+
6874 - name : 🚀 Publish to NPM
6975 run : npm publish --access public
7076 env :
7177 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
7278 CI : true
73-
74-
75- # - name: 🪵 Simulate NPM publish
76- # run: |
77- # echo "Would publish version: ${{ steps.version_step.outputs.version }} to NPM"
Original file line number Diff line number Diff line change 11{
22 "name" : " ts-cacheable" ,
3- "version" : " 1.0.15 " ,
3+ "version" : " 1.0.14 " ,
44 "description" : " Promise/Observable cache decorators" ,
55 "main" : " ./dist/cjs/index.js" ,
66 "module" : " ./dist/esm5/index.js" ,
2222 "author" : " Angel Nikolov <darkysharky@gmail.com>" ,
2323 "license" : " ISC" ,
2424 "peerDependencies" : {
25- "rxjs" : " ^6.2 .0"
25+ "rxjs" : " ^6.6.0 || ^7.4 .0"
2626 },
2727 "devDependencies" : {
2828 "@types/jasmine" : " ^2.8.6" ,
You can’t perform that action at this time.
0 commit comments