Skip to content

chore: fix permissions for pull-request-closed workflow (#22782) #990

chore: fix permissions for pull-request-closed workflow (#22782)

chore: fix permissions for pull-request-closed workflow (#22782) #990

Workflow file for this run

name: Publish Figma code connect changes
on:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
code-connect:
name: Code Connect - ${{ matrix.package }}
runs-on: ubuntu-latest
strategy:
matrix:
package:
- react
- web-components
steps:
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Use Node.js version from .nvmrc
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version-file: '.nvmrc'
- name: Cache dependencies
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
id: cache
with:
path: |
node_modules
*/**/node_modules
key:
${{ runner.os }}-yarn-${{ hashFiles('yarn.lock',
'packages/**/yarn.lock') }}
- name: Install dependencies
env:
YARN_ENABLE_HARDENED_MODE: 0
run: yarn install --immutable
- name: Publish to Figma Code Connect
working-directory: packages/${{ matrix.package }}
run: npx figma connect publish
env:
FIGMA_ACCESS_TOKEN: ${{ secrets.FIGMA_ACCESS_TOKEN }}