Skip to content

Commit b520036

Browse files
committed
fix(ci): allow docs deployment even if npm publish fails
1 parent 105494f commit b520036

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,17 +48,18 @@ jobs:
4848
npm publish --provenance --access public
4949
env:
5050
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
51+
continue-on-error: true # Don't fail the job if npm publish fails (e.g., missing token)
5152

5253
- name: Create GitHub Release
5354
uses: softprops/action-gh-release@v2
5455
with:
5556
body: |
5657
## What's Changed
57-
58+
5859
See the [CHANGELOG](https://github.com/pegasusheavy/ngx-tailwindcss/blob/main/CHANGELOG.md) for details.
59-
60+
6061
### Installation
61-
62+
6263
```bash
6364
npm install @pegasusheavy/ngx-tailwindcss@${{ github.ref_name }}
6465
```
@@ -70,7 +71,8 @@ jobs:
7071
docs:
7172
name: Deploy Docs
7273
runs-on: ubuntu-latest
73-
needs: release
74+
# Run docs independently - don't wait for release job
75+
# This ensures docs are deployed even if npm publish fails
7476

7577
permissions:
7678
contents: read

0 commit comments

Comments
 (0)