docs: add warning that style-loader is not supported with CSS extract… #422
This file contains hidden or 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: ${{ github.repository_owner == 'microsoft' && (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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| with: | |
| fetch-depth: 0 | |
| - name: Verify extension has changed | |
| uses: tj-actions/changed-files@2f7c5bfce28377bc069a65ba478de0a74aa0ca32 # v46.0.1 | |
| id: verify-extension-changed | |
| with: | |
| files: | | |
| packages/devtools/package.json | |
| deploy: | |
| runs-on: ubuntu-latest | |
| if: ${{ needs.check.outputs.status == 'true' || github.event_name == 'workflow_dispatch' }} | |
| needs: check | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0 | |
| with: | |
| cache: 'yarn' | |
| node-version: '20' | |
| - 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@569e87bc9a54ad7712ba6dc154a110d88af63b85 # 2.1.1 | |
| 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 |