Skip to content

Commit 7341441

Browse files
updated release workflow
1 parent 2af3d10 commit 7341441

1 file changed

Lines changed: 19 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
name: Release (main)
2-
31
on:
42
push:
53
branches:
@@ -11,6 +9,7 @@ jobs:
119
permissions:
1210
contents: read
1311
id-token: write # CRITICAL: This enables OIDC authentication
12+
packages: write
1413

1514
steps:
1615
- name: Checkout
@@ -38,7 +37,23 @@ jobs:
3837
- name: Build library
3938
run: npm run build
4039

40+
# ---- Debugging steps (temporary) ----
41+
- name: List built package folder
42+
run: |
43+
echo "Listing dist/ngbootstrap:"
44+
ls -la dist/ngbootstrap || true
45+
46+
- name: Show package.json to be published
47+
run: |
48+
echo "dist/ngbootstrap/package.json contents:"
49+
cat dist/ngbootstrap/package.json || true
50+
51+
- name: Check npm auth (whoami)
52+
run: |
53+
echo "npm whoami (shows authenticated identity if OIDC worked):"
54+
npm whoami --registry=https://registry.npmjs.org || true
55+
# -------------------------------------
56+
4157
- name: Publish to npm
42-
# OIDC handles authentication automatically now.
4358
working-directory: dist/ngbootstrap
44-
run: npm publish --provenance --access public # publish the built package only
59+
run: npm publish --provenance --access public

0 commit comments

Comments
 (0)