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
|
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
|
rm _iconCloud/manifest.json.bk
|
||||||
|
|
||||||
## Publish svg icons
|
- name: Build SVG library
|
||||||
# - name: Build and publish SVGs to npm
|
run: |
|
||||||
# run: |
|
npm install
|
||||||
# npm install
|
npm run build
|
||||||
# npm config set //registry.npmjs.org:_authToken ${NODE_AUTH_TOKEN}
|
working-directory: packages/svg-icons
|
||||||
# npm run build
|
|
||||||
# npm publish --ignore-scripts
|
- uses: JS-DevTools/npm-publish@v1
|
||||||
# npm run clean
|
with:
|
||||||
# working-directory: packages/svg-icons
|
token: ${{ secrets.NPM_TOKEN }}
|
||||||
# env:
|
access: public
|
||||||
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
package: packages/svg-icons/package.json
|
||||||
|
|
||||||
- name: Update icon sheet
|
- name: Update icon sheet
|
||||||
run: python3 generate_icons_md.py
|
run: python3 generate_icons_md.py
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/microsoft/fluentui-system-icons.git"
|
"url": "https://github.com/microsoft/fluentui-system-icons.git"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"clean": "shx rm -rf ./icons",
|
"clean": "shx rm -rf ./icons",
|
||||||
|
|
Загрузка…
Ссылка в новой задаче