Skip to content

Commit

Permalink
Add changesets (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
lorisleiva authored May 7, 2024
1 parent 05ba4c4 commit 8b6d6c3
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 46 deletions.
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -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 changes: 23 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/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"
}
77 changes: 33 additions & 44 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
2 changes: 0 additions & 2 deletions .tool-versions

This file was deleted.

0 comments on commit 8b6d6c3

Please sign in to comment.