name: Generate build for reuse on: workflow_call: jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: Get yarn cache directory path id: yarn-cache-dir-path run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT - uses: actions/cache@v3 id: yarn-cache with: path: ${{ steps.yarn-cache-dir-path.outputs.dir }} key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} restore-keys: | ${{ runner.os }}-yarn- - name: Install Dependencies run: | yarn --ignore-platform --ignore-engines --frozen-lockfile --prefer-offline - name: Retrieve vscode icons uses: actions/checkout@v3 with: repository: 'vscode-icons/vscode-icons' path: 'vscode-icons' - name: Build run: | NODE_OPTIONS=--openssl-legacy-provider make build - name: Archive production artifacts uses: actions/upload-artifact@v4 with: name: dist path: dist