Skip to content

chore: update kolibri and deps #696

chore: update kolibri and deps

chore: update kolibri and deps #696

Workflow file for this run

name: Update GitHub page
env:
github-registry: https://npm.pkg.github.com
github-token: ${{ secrets.GITHUB_TOKEN }}
npmjs-registry: https://registry.npmjs.org
scope: public-ui
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
on:
push:
branches:
- main
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# https://github.com/pnpm/action-setup#use-cache-to-reduce-installation-time
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: "${{env.npmjs-registry}}"
scope: "@${{env.scope}}"
- uses: pnpm/action-setup@v4
id: pnpm-install
with:
version: 9
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store
restore-keys: |
${{ runner.os }}-pnpm-store
- name: Build Docs
run: |
pnpm install --no-frozen-lockfile
npm run build
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: "${{env.github-registry}}"
scope: "@${{env.scope}}"
- name: Download designer (v1)
env:
NODE_AUTH_TOKEN: ${{env.token}}
run: |
rm -rf package *.tgz
npm pack @${{env.scope}}/designer@^1
tar -xzvf public-ui-designer-*.tgz
rm -rf build/v1/designer
mkdir -p build/v1
mv package/dist build/v1/designer
rm -rf package *.tgz
- name: Download sample react (v1)
env:
NODE_AUTH_TOKEN: ${{env.token}}
run: |
rm -rf package *.tgz
npm pack @${{env.scope}}/sample-react@^1
tar -xzvf public-ui-sample-react-*.tgz
rm -rf build/v1/sample-react
mkdir -p build/v1
mv package/dist build/v1/sample-react
rm -rf package *.tgz
- name: Download designer (v2)
env:
NODE_AUTH_TOKEN: ${{env.token}}
run: |
rm -rf package *.tgz
npm pack @${{env.scope}}/designer@^2
tar -xzvf public-ui-designer-*.tgz
rm -rf build/v2/designer
mkdir -p build/v2
mv package/dist build/v2/designer
rm -rf package *.tgz
- name: Download sample react (v2)
env:
NODE_AUTH_TOKEN: ${{env.token}}
run: |
rm -rf package *.tgz
npm pack @${{env.scope}}/sample-react@^2
tar -xzvf public-ui-sample-react-*.tgz
rm -rf build/v2/sample-react
mkdir -p build/v2
mv package/dist build/v2/sample-react
rm -rf package *.tgz
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload GitHub Pages artifact
uses: actions/[email protected]
with:
path: build
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4