Skip to content

fix: compilation on latest typescript version #33

fix: compilation on latest typescript version

fix: compilation on latest typescript version #33

Workflow file for this run

name: Deploy Packages
on:
push:
tags:
- '*'
jobs:
deploy-packages:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18
- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 8
run_install: false
- uses: gittools/actions/gitversion/setup@v0
with:
versionSpec: "5.x"
- name: Install Dependencies
run: pnpm install
- name: Check
run: |
pnpm -r check:prettier
pnpm -r check:eslint
- name: Prepare Build
run: |
pnpm -r convert
pnpm -r generate
- name: Build
run: pnpm -F "./packages/**/*" build
- name: Copy README
run: cp ./README.md packages/uikit
- name: Gitversion
id: gitversion
uses: gittools/actions/gitversion/execute@v0
- name: Set Version
run: pnpm -r exec json -f "package.json" -I -e 'this.version = "${{ steps.gitversion.outputs.fullSemVer }}"'
- name: Set publishing config
run: pnpm config set '//registry.npmjs.org/:_authToken' "${{ secrets.NPM_TOKEN }}"
- name: Deploy Uikit Package
working-directory: ./packages/uikit
run: pnpm publish --access public --no-git-checks --tag ${{ steps.gitversion.outputs.preReleaseLabel == '' && 'latest' || steps.gitversion.outputs.preReleaseLabel }}
- name: Deploy Uikit-Lucide Package
working-directory: ./packages/icons/lucide
run: pnpm publish --access public --no-git-checks --tag ${{ steps.gitversion.outputs.preReleaseLabel == '' && 'latest' || steps.gitversion.outputs.preReleaseLabel }}
- name: Deploy Uikit-Default Package
working-directory: ./packages/kits/default
run: pnpm publish --access public --no-git-checks --tag ${{ steps.gitversion.outputs.preReleaseLabel == '' && 'latest' || steps.gitversion.outputs.preReleaseLabel }}
- name: Deploy Uikit-Apfel Package
working-directory: ./packages/kits/apfel
run: pnpm publish --access public --no-git-checks --tag ${{ steps.gitversion.outputs.preReleaseLabel == '' && 'latest' || steps.gitversion.outputs.preReleaseLabel }}