fix: fix sorting of buckets in sortCSSRules() (#550) #308
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish devtools extension | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
branches: | |
- main | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
if: ${{ contains(github.event.head_commit.message, 'applying package updates') || github.event_name == 'workflow_dispatch' }} | |
outputs: | |
status: ${{ steps.verify-extension-changed.outputs.any_changed }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Verify extension has changed | |
uses: tj-actions/changed-files@v41 | |
id: verify-extension-changed | |
with: | |
files: | | |
packages/devtools/package.json | |
deploy: | |
runs-on: ubuntu-latest | |
needs: check | |
if: ${{ needs.check.outputs.status == 'true' || github.event_name == 'workflow_dispatch' }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
cache: 'yarn' | |
node-version: '18' | |
- run: yarn install --immutable | |
- run: yarn nx run-many --target=build --projects=@griffel/devtools --parallel --max-parallel=3 | |
- run: yarn nx run @griffel/devtools:pack-extension | |
- name: Upload extension | |
uses: mobilefirstllc/cws-publish@latest | |
with: | |
action: 'publish' | |
refresh_token: ${{ secrets.CHROME_EXT_REFRESH_TOKEN }} | |
client_id: ${{ secrets.CHROME_EXT_CLIENT_ID }} | |
client_secret: ${{ secrets.CHROME_EXT_CLIENT_SECRET }} | |
extension_id: ${{ secrets.CHROME_EXT_APP_ID }} | |
zip_file: ./dist/packages/ext.zip |