Skip to content
This repository has been archived by the owner on Nov 17, 2024. It is now read-only.

Update dependency @pnpm/dependency-path to v2.1.4 #302

Update dependency @pnpm/dependency-path to v2.1.4

Update dependency @pnpm/dependency-path to v2.1.4 #302

Workflow file for this run

name: Deployment
permissions:
contents: read
pages: write
id-token: write
on:
push:
branches:
- main
workflow_dispatch:
concurrency:
group: github-pages
cancel-in-progress: true
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
environment: github-pages
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Setup Node.js
uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 # v3
with:
node-version: "16"
- name: Setup pnpm
run: |-
corepack enable
pnpm --version
- name: Get pnpm store directory
id: pnpm-cache
run: echo "pnpm_cache_dir=$(pnpm store path)" >>$GITHUB_OUTPUT
- name: Cache pnpm modules
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.OS }}-pnpm-current-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: |
${{ runner.OS }}-pnpm-current
- name: Install packages
run: pnpm install
- name: Setup Pages
id: pages
uses: actions/configure-pages@f156874f8191504dae5b037505266ed5dda6c382 # v3
- name: Build
run: pnpm run build
env:
RTE_BASE_URL: ${{ steps.pages.outputs.base_path }}
RTE_TREE_URL: https://github.com/${{ github.repository }}/tree/${{ github.sha }}/
RTE_BLOB_URL: https://github.com/${{ github.repository }}/blob/${{ github.sha }}/
- name: Remove generated declaration files
run: rm -r build/types
- name: Upload artifact
uses: actions/upload-pages-artifact@a753861a5debcf57bf8b404356158c8e1e33150c # v2
with:
path: build
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@9dbe3824824f8a1377b8e298bafde1a50ede43e5 # v2