Skip to content

Commit

Permalink
chore: update workflows config.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Mar 9, 2022
1 parent 0c6a648 commit 5e200d2
Showing 1 changed file with 163 additions and 25 deletions.
188 changes: 163 additions & 25 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,32 +22,37 @@ jobs:
- run: npm run coverage

- uses: jaywcjlove/coverage-badges-cli@main
- name: Generate Contributors Images
uses: jaywcjlove/github-action-contributors@main
with:
filter-author: (renovate\[bot\]|renovate-bot|dependabot\[bot\])
output: coverage/CONTRIBUTORS.svg
avatarSize: 42

- run: cp -rp coverage website/build

- run: npm install @jsdevtools/npm-publish -g
- run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./packages/color/package.json
- run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./packages/color-alpha/package.json
- run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./packages/color-block/package.json
- run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./packages/color-convert/package.json
- run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./packages/color-compact/package.json
- run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./packages/color-colorful/package.json
- run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./packages/color-circle/package.json
- run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./packages/color-github/package.json
- run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./packages/color-chrome/package.json
- run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./packages/color-editable-input/package.json
- run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./packages/color-editable-input-hsla/package.json
- run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./packages/color-editable-input-rgba/package.json
- run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./packages/color-hue/package.json
- run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./packages/color-name/package.json
- run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./packages/color-material/package.json
- run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./packages/color-saturation/package.json
- run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./packages/color-shade-slider/package.json
- run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./packages/color-sketch/package.json
- run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./packages/color-slider/package.json
- run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./packages/color-swatch/package.json
- run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./packages/color-wheel/package.json
- run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./packages/drag-event-interactive/package.json
# - run: npm install @jsdevtools/npm-publish -g
# - run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./packages/color/package.json
# - run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./packages/color-alpha/package.json
# - run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./packages/color-block/package.json
# - run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./packages/color-convert/package.json
# - run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./packages/color-compact/package.json
# - run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./packages/color-colorful/package.json
# - run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./packages/color-circle/package.json
# - run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./packages/color-github/package.json
# - run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./packages/color-chrome/package.json
# - run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./packages/color-editable-input/package.json
# - run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./packages/color-editable-input-hsla/package.json
# - run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./packages/color-editable-input-rgba/package.json
# - run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./packages/color-hue/package.json
# - run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./packages/color-name/package.json
# - run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./packages/color-material/package.json
# - run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./packages/color-saturation/package.json
# - run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./packages/color-shade-slider/package.json
# - run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./packages/color-sketch/package.json
# - run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./packages/color-slider/package.json
# - run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./packages/color-swatch/package.json
# - run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./packages/color-wheel/package.json
# - run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./packages/drag-event-interactive/package.json

- name: Create Tag
id: create_tag
Expand Down Expand Up @@ -97,4 +102,137 @@ jobs:
# - name: Coveralls
# uses: coverallsapp/github-action@master
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
# github-token: ${{ secrets.GITHUB_TOKEN }}


- name: 📦 @uiw/react-color publish to NPM
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./packages/color/package.json

- name: 📦 @uiw/react-color-alpha publish to NPM
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./packages/color-alpha/package.json

- name: 📦 @uiw/react-color-block publish to NPM
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./packages/color-block/package.json

- name: 📦 @uiw/react-color-convert publish to NPM
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./packages/color-convert/package.json

- name: 📦 @uiw/react-color-compact publish to NPM
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./packages/color-compact/package.json

- name: 📦 @uiw/react-color-colorful publish to NPM
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./packages/color-colorful/package.json

- name: 📦 @uiw/react-color-circle publish to NPM
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./packages/color-circle/package.json

- name: 📦 @uiw/react-color-github publish to NPM
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./packages/color-github/package.json

- name: 📦 @uiw/react-color-chrome publish to NPM
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./packages/color-chrome/package.json

- name: 📦 @uiw/react-color-editable-input publish to NPM
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./packages/color-editable-input/package.json

- name: 📦 @uiw/react-color-editable-input-hsla publish to NPM
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./packages/color-editable-input-hsla/package.json

- name: 📦 @uiw/react-color-editable-input-rgba publish to NPM
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./packages/color-editable-input-rgba/package.json

- name: 📦 @uiw/react-color-hue publish to NPM
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./packages/color-hue/package.json

- name: 📦 @uiw/react-color-name publish to NPM
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./packages/color-name/package.json

- name: 📦 @uiw/react-color-material publish to NPM
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./packages/color-material/package.json

- name: 📦 @uiw/react-color-saturation publish to NPM
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./packages/color-saturation/package.json

- name: 📦 @uiw/react-color-shade-slider publish to NPM
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./packages/color-shade-slider/package.json

- name: 📦 @uiw/react-color-sketch publish to NPM
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./packages/color-sketch/package.json

- name: 📦 @uiw/react-color-slider publish to NPM
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./packages/color-slider/package.json

- name: 📦 @uiw/react-color-swatch publish to NPM
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./packages/color-swatch/package.json

- name: 📦 @uiw/react-color-wheel publish to NPM
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./packages/color-wheel/package.json

- name: 📦 @uiw/react-drag-event-interactive publish to NPM
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./packages/drag-event-interactive/package.json

0 comments on commit 5e200d2

Please sign in to comment.