Skip to content

Update pnpm to v8.12.1 #342

Update pnpm to v8.12.1

Update pnpm to v8.12.1 #342

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@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4
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@1f0c5cde4bc74cd7e1254d0cb4de8d49e9068c7d # v4
- 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@13b55b33dd8996121833dbc1db458c793a334630 # v3