WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

chore: use Node 20 for releases (#725) #449

chore: use Node 20 for releases (#725)

chore: use Node 20 for releases (#725) #449

Workflow file for this run

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') }}
permissions:
contents: 'read'
actions: 'read'
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
permissions:
contents: 'read'
actions: 'read'
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