Răsfoiți Sursa

Add changesets (#20)

Loris Leiva 1 an în urmă
părinte
comite
8b6d6c36d9
4 a modificat fișierele cu 64 adăugiri și 46 ștergeri
  1. 8 0
      .changeset/README.md
  2. 23 0
      .changeset/config.json
  3. 33 44
      .github/workflows/main.yml
  4. 0 2
      .tool-versions

+ 8 - 0
.changeset/README.md

@@ -0,0 +1,8 @@
+# Changesets
+
+Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
+with multi-package repos, or single-package repos to help you version and publish your code. You can
+find the full documentation for it [in our repository](https://github.com/changesets/changesets)
+
+We have a quick list of common questions to get you started engaging with this project in
+[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

+ 23 - 0
.changeset/config.json

@@ -0,0 +1,23 @@
+{
+  "$schema": "https://unpkg.com/@changesets/config@3.0.0/schema.json",
+  "changelog": [
+    "@changesets/changelog-github",
+    { "repo": "kinobi-so/kinobi" }
+  ],
+  "commit": false,
+  "fixed": [
+        [
+            "kinobi",
+            "@kinobi-so/errors",
+            "@kinobi-so/node-types",
+            "@kinobi-so/nodes",
+            "@kinobi-so/validators",
+            "@kinobi-so/visitors*"
+        ]
+    ],
+  "linked": [],
+  "ignore": ["@kinobi-so/internals"],
+  "access": "public",
+  "baseBranch": "main",
+  "updateInternalDependencies": "patch"
+}

+ 33 - 44
.github/workflows/main.yml

@@ -63,47 +63,36 @@ jobs:
       - name: Ensure working directory is clean
         run: test -z "$(git status --porcelain)"
 
-  # release:
-  #   name: Release
-  #   runs-on: ubuntu-latest
-  #   if: github.event_name == 'push'
-  #   needs: [lint, tests]
-  #   outputs:
-  #     published: ${{ steps.changesets.outputs.published }}
-  #   steps:
-  #     - name: Checkout Repo
-  #       uses: actions/checkout@v4
-
-  #     - name: Setup pnpm
-  #       uses: pnpm/action-setup@v3
-
-  #     - name: Setup Node.js
-  #       uses: actions/setup-node@v4
-  #       with:
-  #         node-version: ${{ env.NODE_VERSION }}
-  #         cache: 'pnpm'
-
-  #     - name: Install Dependencies
-  #       run: pnpm install --frozen-lockfile
-
-  #     - name: Get Build Version
-  #       run: |
-  #         pnpm packages:version
-  #         echo "BUILD_VERSION=$(./configs/get-latest-version.sh)" | tee $GITHUB_ENV
-  #         git reset --hard && git clean -df
-  #       env:
-  #         GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-
-  #     - name: Create Release Pull Request or Publish
-  #       id: changesets
-  #       uses: lorisleiva/changesets-action@main
-  #       with:
-  #         commit: 'Release packages'
-  #         title: 'Release packages'
-  #         publish: pnpm packages:publish
-  #         createGithubReleases: 'aggregate'
-  #         githubReleaseName: v${{ env.BUILD_VERSION }}
-  #         githubTagName: v${{ env.BUILD_VERSION }}
-  #       env:
-  #         GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-  #         NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
+  release:
+    name: Release
+    runs-on: ubuntu-latest
+    if: github.event_name == 'push'
+    needs: [lint, tests]
+    outputs:
+      published: ${{ steps.changesets.outputs.published }}
+    steps:
+      - name: Checkout Repo
+        uses: actions/checkout@v4
+
+      - name: Setup pnpm
+        uses: pnpm/action-setup@v3
+
+      - name: Setup Node.js
+        uses: actions/setup-node@v4
+        with:
+          node-version: ${{ env.NODE_VERSION }}
+          cache: 'pnpm'
+
+      - name: Install Dependencies
+        run: pnpm install --frozen-lockfile
+
+      - name: Create Release Pull Request or Publish
+        id: changesets
+        uses: lorisleiva/changesets-action@main
+        with:
+          commit: 'Publish packages'
+          title: 'Publish packages'
+          publish: ./node_modules/.bin/changeset publish
+        env:
+          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+          NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

+ 0 - 2
.tool-versions

@@ -1,2 +0,0 @@
-pnpm 8.3.0
-nodejs 19.8.1