Skip to content

Commit 2c474d3

Browse files
committed
update for new OIDC auth pipe for npm
1 parent 45d4cbf commit 2c474d3

File tree

1 file changed

+28
-37
lines changed

1 file changed

+28
-37
lines changed

.github/workflows/publish-npm.yml

Lines changed: 28 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -117,60 +117,51 @@ jobs:
117117
echo "✓ @vue-skuilder/$package build output verified"
118118
done
119119
120-
- name: Configure Yarn npm authentication
121-
env:
122-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
123-
run: |
124-
yarn config set npmAuthToken $NODE_AUTH_TOKEN
125-
yarn config set npmRegistryServer https://registry.npmjs.org
126-
127120
- name: Publish packages in dependency order
128-
env:
129-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
130121
run: |
131122
set -e
132123
NPM_TAG="${{ steps.extract_version.outputs.NPM_TAG }}"
133-
124+
134125
echo "Publishing @vue-skuilder/common..."
135-
cd packages/common && yarn npm publish --access public --tag $NPM_TAG && cd ../..
136-
126+
cd packages/common && yarn npm publish --access public --tag $NPM_TAG --provenance && cd ../..
127+
137128
echo "Publishing @vue-skuilder/db..."
138-
cd packages/db && yarn npm publish --access public --tag $NPM_TAG && cd ../..
139-
129+
cd packages/db && yarn npm publish --access public --tag $NPM_TAG --provenance && cd ../..
130+
140131
echo "Publishing @vue-skuilder/common-ui..."
141-
cd packages/common-ui && yarn npm publish --access public --tag $NPM_TAG && cd ../..
142-
132+
cd packages/common-ui && yarn npm publish --access public --tag $NPM_TAG --provenance && cd ../..
133+
143134
echo "Publishing @vue-skuilder/edit-ui..."
144-
cd packages/edit-ui && yarn npm publish --access public --tag $NPM_TAG && cd ../..
145-
135+
cd packages/edit-ui && yarn npm publish --access public --tag $NPM_TAG --provenance && cd ../..
136+
146137
echo "Publishing @vue-skuilder/courseware..."
147-
cd packages/courseware && yarn npm publish --access public --tag $NPM_TAG && cd ../..
148-
138+
cd packages/courseware && yarn npm publish --access public --tag $NPM_TAG --provenance && cd ../..
139+
149140
echo "Publishing @vue-skuilder/client..."
150-
cd packages/client && yarn npm publish --access public --tag $NPM_TAG && cd ../..
151-
141+
cd packages/client && yarn npm publish --access public --tag $NPM_TAG --provenance && cd ../..
142+
152143
echo "Publishing @vue-skuilder/platform-ui..."
153-
cd packages/platform-ui && yarn npm publish --access public --tag $NPM_TAG && cd ../..
154-
144+
cd packages/platform-ui && yarn npm publish --access public --tag $NPM_TAG --provenance && cd ../..
145+
155146
echo "Publishing @vue-skuilder/standalone-ui..."
156-
cd packages/standalone-ui && yarn npm publish --access public --tag $NPM_TAG && cd ../..
157-
147+
cd packages/standalone-ui && yarn npm publish --access public --tag $NPM_TAG --provenance && cd ../..
148+
158149
echo "Publishing @vue-skuilder/mcp..."
159-
cd packages/mcp && yarn npm publish --access public --tag $NPM_TAG && cd ../..
160-
150+
cd packages/mcp && yarn npm publish --access public --tag $NPM_TAG --provenance && cd ../..
151+
161152
# echo "Publishing @vue-skuilder/tuilder..."
162-
# cd packages/tuilder && yarn npm publish --access public --tag $NPM_TAG && cd ../..
163-
153+
# cd packages/tuilder && yarn npm publish --access public --tag $NPM_TAG --provenance && cd ../..
154+
164155
echo "Publishing @vue-skuilder/express..."
165-
cd packages/express && yarn npm publish --access public --tag $NPM_TAG && cd ../..
166-
156+
cd packages/express && yarn npm publish --access public --tag $NPM_TAG --provenance && cd ../..
157+
167158
echo "Publishing @vue-skuilder/cli (scoped)..."
168-
cd packages/cli && yarn npm publish --access public --tag $NPM_TAG && cd ../..
169-
159+
cd packages/cli && yarn npm publish --access public --tag $NPM_TAG --provenance && cd ../..
160+
170161
# Dual-publish CLI as unscoped 'skuilder' package
171162
echo "Publishing CLI as 'skuilder'..."
172163
cd packages/cli
173-
164+
174165
# Modify package.json for unscoped publish
175166
node -e "
176167
const fs = require('fs');
@@ -180,9 +171,9 @@ jobs:
180171
delete pkg.publishConfig;
181172
fs.writeFileSync('package.json', JSON.stringify(pkg, null, 2));
182173
"
183-
174+
184175
# Use yarn npm publish to maintain workspace dependency resolution
185-
yarn npm publish --access public --tag $NPM_TAG
176+
yarn npm publish --access public --tag $NPM_TAG --provenance
186177
cd ../..
187178
188179
echo "All packages published successfully!"

0 commit comments

Comments
 (0)