Skip to content

chore: fix tsconfig #313

chore: fix tsconfig

chore: fix tsconfig #313

Workflow file for this run

name: CI
on:
push:
branches:
- main
- develop
env:
NODE_VERSION: 18
PNPM_VERSION: 8
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
- uses: pnpm/action-setup@v2
with:
version: ${{ env.PNPM_VERSION }}
- id: pnpm-cache
shell: bash
run: echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: ${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Test
run: pnpm run test
- name: Build
env:
NODE_OPTIONS: "--max_old_space_size=4096"
run: pnpm run build
- name: Create release pull request or publish to npm
id: changesets
uses: changesets/action@v1
with:
commit: "chore: update versions"
title: Update versions
publish: pnpm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Build metadata
id: metadata
uses: actions/github-script@v6
env:
PUBLISHED_PACKAGES: ${{ steps.changesets.outputs.publishedPackages }}
with:
script: |
const metadata = require('./.github/workflows/metadata.js')
await metadata({ github, context, core })
- name: Prepare deploy
run: |-
rm packages/site/dist/node_modules
- name: Deploy suid.io site
if: steps.metadata.outputs['@suid/site:published'] == 'true'
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: packages/site/dist
- name: Deploy next.suid.io site
uses: JamesIves/[email protected]
with:
branch: gh-pages-next
folder: packages/site/dist