Skip to content

Commit b4ad317

Browse files
authored
chore(ci): test npm publishing (#6197)
1 parent 7eb55c4 commit b4ad317

File tree

1 file changed

+2
-21
lines changed

1 file changed

+2
-21
lines changed

.github/workflows/create-release.yml

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -100,23 +100,6 @@ jobs:
100100
- run: yarn run lint
101101
- run: yarn run build:prod
102102

103-
- name: Debug OIDC and npm setup
104-
run: |
105-
echo "=== GitHub Context ==="
106-
echo "Repository: ${{ github.repository }}"
107-
echo "Workflow: ${{ github.workflow }}"
108-
echo "Job: ${{ github.job }}"
109-
echo "Ref: ${{ github.ref }}"
110-
echo "Actor: ${{ github.actor }}"
111-
echo "Event name: ${{ github.event_name }}"
112-
echo ""
113-
echo "=== NPM Configuration ==="
114-
npm config list
115-
echo ""
116-
echo "=== Testing OIDC Token ==="
117-
curl -H "Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" \
118-
"$ACTIONS_ID_TOKEN_REQUEST_URL&audience=npm" | jq .value || echo "Token request failed"
119-
120103
- name: Publish packages to NPM
121104
run: |
122105
if [ "${{ env.IS_PRERELEASE }}" = "true" ]; then
@@ -130,11 +113,9 @@ jobs:
130113
131114
for package_path in dist/packages/styles dist/packages/common-css dist/packages/theming-preview dist/packages/cx; do
132115
if [ -f "$package_path/package.json" ]; then
133-
echo "Publishing $package_path with tag $tag"
116+
package_name=$(node -p "require('./$package_path/package.json').name")
117+
echo "Publishing $package_name from $package_path with tag $tag"
134118
cd "$package_path"
135-
echo "Running dry-run first..."
136-
npm publish --access public --tag "$tag" --provenance --dry-run
137-
echo "Dry run completed, now attempting real publish..."
138119
npm publish --access public --tag "$tag" --provenance
139120
cd - > /dev/null
140121
fi

0 commit comments

Comments
 (0)