Skip to content

Commit 35df98a

Browse files
committed
fix: quick fix rxjs dep
1 parent 2c413fb commit 35df98a

2 files changed

Lines changed: 12 additions & 11 deletions

File tree

.github/workflows/release.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff 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
@@ -38,7 +40,6 @@ jobs:
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"

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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",
@@ -22,7 +22,7 @@
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",

0 commit comments

Comments
 (0)