Skip to content

ref: Refactor InitConfig and Configuration types to simplify override… #199

ref: Refactor InitConfig and Configuration types to simplify override…

ref: Refactor InitConfig and Configuration types to simplify override… #199

Workflow file for this run

# This workflow will do a clean install of node dependencies, build the source code and run tests
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Post-merge tasks
on:
push:
branches: ["main", "release/*"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Read .nvmrc
run: echo "NVMRC=$(cat .nvmrc)" >> $GITHUB_ENV
id: nvm
- name: Use Node.js ${{ env.NVMRC }}
uses: actions/setup-node@v4
with:
node-version: ${{ env.NVMRC }}
- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: 9
run_install: false
- name: Get pnpm store directory
shell: bash
run: echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- name: Setup pnpm cache
uses: actions/cache@v4
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Run merge tasks
run: pnpm install
- name: Lint Code
run: pnpm run lint:code --quiet
- name: Lint Style
run: pnpm run lint:style --quiet
- name: Test
run: pnpm run test --silent
- name: Build
run: pnpm run build
- name: Pack NPM Tarball
working-directory: packages/toolbar
run: |
pnpm install
pnpm build
pnpm pack --pack-destination dist
- name: Archive artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ github.sha }}
path: |
${{ github.workspace }}/dist/**
${{ github.workspace }}/**/dist/*.tgz