feat(system-requirements): bump minimum required TypeScript version t… #6400
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Lost Pixel" | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: Lost Pixel | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Get all changed markdown files | |
id: changed-files | |
uses: tj-actions/changed-files@v45 | |
with: | |
files: content/**/*.{md,mdx} | |
- name: Output relevant files | |
env: | |
CHANGED_FILES: ${{ steps.changed-files.outputs.any_changed }} | |
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }} | |
run: | | |
if [ ${CHANGED_FILES} == 'true' ]; then | |
declare -a linksArray | |
linksArray=(`echo ${ALL_CHANGED_FILES}`) | |
for link in "${linksArray[@]}"; do | |
echo "$link" | |
done | |
else | |
echo "No files changed." | |
fi | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- name: Install deps | |
run: npm install | |
- name: Build docs | |
env: | |
DOCUSAURUS_POST_HOG_KEY: ${{ secrets.DOCUSAURUS_POST_HOG_KEY }} | |
run: npm run clean && npm run build | |
- name: Start docs | |
run: npm run serve & | |
- name: Generate sitemap | |
run: npx lost-pixel page-sitemap-gen http://172.17.0.1:3000/sitemap.xml "./lost-pixel-pages.json" | |
- name: Edit page names | |
run: sed -i -e 's/_/\//g' -e 's|prisma\.io||g' -re 's/(name.+)(\/)(\")/\1-\3/g' lost-pixel-pages.json | |
- name: Lost Pixel | |
uses: lost-pixel/[email protected] | |
env: | |
LOST_PIXEL_API_KEY: ${{ secrets.LOST_PIXEL_API_KEY }} |