diff --git a/.changeset/config.json b/.changeset/config.json index 80b1e71e..922bac3b 100644 --- a/.changeset/config.json +++ b/.changeset/config.json @@ -7,5 +7,9 @@ "access": "public", "baseBranch": "main", "updateInternalDependencies": "patch", - "ignore": ["docs"] + "ignore": [ + "@luke-ui-internal/docs", + "@luke-ui-internal/playroom", + "@luke-ui-internal/ladle" + ] } diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d17b5737..70c00554 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,33 +7,41 @@ on: concurrency: ${{ github.workflow }}-${{ github.ref }} +env: + CI: true + PNPM_CACHE_FOLDER: .pnpm-store + jobs: - release: + version: name: Release + timeout-minutes: 15 runs-on: ubuntu-latest steps: - - name: Checkout Repo + - name: Checkout repo uses: actions/checkout@v2 + with: + fetch-depth: 0 - - name: Setup Node.js 16.x + - name: Setup node.js 16.x uses: actions/setup-node@v2 with: node-version: 16.x - - name: Install Dependencies - run: yarn + - name: install pnpm + run: npm i pnpm@latest -g + + - name: Setup pnpm config + run: pnpm config set store-dir $PNPM_CACHE_FOLDER - - name: Create Release Pull Request or Publish to npm - id: changesets + - name: Install dependencies + run: pnpm install + + - name: Create release pull request or publish to npm uses: changesets/action@v1 with: + version: pnpm ci:version # This expects you to have a script called release which does a build for your packages and calls changeset publish - publish: yarn release + publish: pnpm ci:publish env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - - - name: Send a Slack notification if a publish happens - if: steps.changesets.outputs.published == 'true' - # You can do something when a publish happens. - run: my-slack-bot send-notification --message "A new version of ${GITHUB_REPOSITORY} was published!" diff --git a/.nvmrc b/.nvmrc index 3c032078..b6a7d89c 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -18 +16 diff --git a/docs/package.json b/docs/package.json index ec43978a..df420419 100644 --- a/docs/package.json +++ b/docs/package.json @@ -1,5 +1,5 @@ { - "name": "docs", + "name": "@luke-ui-internal/docs", "version": "0.0.0", "private": true, "scripts": { diff --git a/ladle/package.json b/ladle/package.json index fb880cc9..b1472112 100644 --- a/ladle/package.json +++ b/ladle/package.json @@ -1,11 +1,11 @@ { - "name": "ladle", + "name": "@luke-ui-internal/ladle", "version": "0.0.0", "private": true, "license": "MIT", "scripts": { - "dev": "ladle serve --port 4123", "build": "ladle build", + "dev": "ladle serve --port 4123", "preview": "ladle preview" }, "dependencies": { diff --git a/package.json b/package.json index a53acc5e..63ad474d 100644 --- a/package.json +++ b/package.json @@ -7,15 +7,15 @@ "build:docs": "turbo run build --filter=docs", "build:packages": "turbo run build --filter=@luke-ui/*", "changeset": "changeset", + "ci:publish": "turbo run build --filter=docs^... && changeset publish", + "ci:version": "changeset version", "clean": "git clean -fXd", "dev": "turbo run dev --parallel", "format": "prettier --write \"**/*.{js,json,md,mjs,ts,tsx}\"", "fresh": "pnpm run clean && pnpm install", "lint": "turbo run lint", "new:package": "plop --plopfile scripts/plopfile.mjs", - "release": "turbo run build --filter=docs^... && changeset publish", - "test": "vitest", - "version:packages": "changeset version" + "test": "vitest" }, "prettier": { "quoteProps": "consistent", diff --git a/playroom/package.json b/playroom/package.json index c1d32526..cb4c3ec0 100644 --- a/playroom/package.json +++ b/playroom/package.json @@ -1,5 +1,5 @@ { - "name": "playroom", + "name": "@luke-ui-internal/playroom", "version": "0.0.0", "private": true, "license": "MIT",