Fix @fluentui/svg-icons publishing
Tested in pr.yml and settled on the JS-DEV/npm-publish action for making it happen.
This commit is contained in:
Родитель
2ff149ae0e
Коммит
49534ceb74
|
@ -125,17 +125,17 @@ jobs:
|
|||
sed -i.bk -r "s/[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]T[0-9][0-9]:[0-9][0-9]Z/$(date -u +%Y-%m-%dT%RZ)/" _iconCloud/manifest.json
|
||||
rm _iconCloud/manifest.json.bk
|
||||
|
||||
## Publish svg icons
|
||||
# - name: Build and publish SVGs to npm
|
||||
# run: |
|
||||
# npm install
|
||||
# npm config set //registry.npmjs.org:_authToken ${NODE_AUTH_TOKEN}
|
||||
# npm run build
|
||||
# npm publish --ignore-scripts
|
||||
# npm run clean
|
||||
# working-directory: packages/svg-icons
|
||||
# env:
|
||||
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
- name: Build SVG library
|
||||
run: |
|
||||
npm install
|
||||
npm run build
|
||||
working-directory: packages/svg-icons
|
||||
|
||||
- uses: JS-DevTools/npm-publish@v1
|
||||
with:
|
||||
token: ${{ secrets.NPM_TOKEN }}
|
||||
access: public
|
||||
package: packages/svg-icons/package.json
|
||||
|
||||
- name: Update icon sheet
|
||||
run: python3 generate_icons_md.py
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
"license": "MIT",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/microsoft/fluentui-system-icons.git"
|
||||
"url": "https://github.com/microsoft/fluentui-system-icons.git"
|
||||
},
|
||||
"scripts": {
|
||||
"clean": "shx rm -rf ./icons",
|
||||
|
|
Загрузка…
Ссылка в новой задаче