Skip to content

Allow CSS anchor positioning in SelectPanel settings #789

Allow CSS anchor positioning in SelectPanel settings

Allow CSS anchor positioning in SelectPanel settings #789

Workflow file for this run

name: npm
on:
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
pack:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
- name: Set up Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
with:
node-version-file: '.nvmrc'
cache: 'npm'
- name: Set up turbo cache
uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb
with:
path: .turbo
key: ${{ runner.os }}-turbo-${{ github.job }}-default-${{ github.run_id }}-${{ github.run_attempt }}
restore-keys: |
${{ runner.os }}-turbo-${{ github.job }}-default-
${{ runner.os }}-turbo-${{ github.job }}-
${{ runner.os }}-turbo-
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Pack public packages
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
script: |
const fs = require('node:fs');
const path = require('node:path');
const directory = path.resolve('packed');
fs.mkdirSync(directory, {recursive: true});
core.startGroup('Packing npm packages');
const {stdout: queryOutput} = await exec.getExecOutput('npm', ['query', '.workspace']);
const workspaces = JSON.parse(queryOutput);
const packages = workspaces.filter(pkg => pkg.private !== true).map(pkg => pkg.name);
core.info(`Packing: ${packages.join(' ')}`);
const args = ['pack', ...packages.map(name => `--workspace=${name}`), '--pack-destination', directory, '--json'];
const {stdout: packOutput} = await exec.getExecOutput('npm', args);
const result = JSON.parse(packOutput);
core.endGroup();
const metadata = {
packages: result.map(pkg => ({
name: pkg.name,
version: pkg.version,
path: path.join('packed', pkg.filename),
})),
};
fs.writeFileSync(path.join(directory, 'metadata.json'), JSON.stringify(metadata, null, 2));
core.info(JSON.stringify(metadata, null, 2));
- name: Upload packed npm packages
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
with:
name: npm-packages
path: |
packed/*.tgz
packed/metadata.json
if-no-files-found: error