Skip to content

Commit

Permalink
Add changesets CI (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
cephalization authored Dec 9, 2024
1 parent fc34ce5 commit 90ee4e1
Show file tree
Hide file tree
Showing 5 changed files with 71 additions and 1 deletion.
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)
11 changes: 11 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
5 changes: 5 additions & 0 deletions .changeset/cool-years-eat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@arizeai/point-cloud": major
---

Refactor build tooling, package as ESM by default
44 changes: 44 additions & 0 deletions .github/workflows/changesets.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Changesets
on:
push:
branches:
- main
env:
CI: true
PNPM_CACHE_FOLDER: .pnpm-store
jobs:
version:
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- name: checkout code repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: setup node.js
uses: actions/setup-node@v3
with:
node-version: 20
registry-url: https://registry.npmjs.org/
scope: "@arizeai"
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: install pnpm
run: npm i pnpm@latest -g
- name: Setup npmrc
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
- name: setup pnpm config
run: pnpm config set store-dir $PNPM_CACHE_FOLDER
- name: install dependencies
run: pnpm install
- name: create and publish versions
uses: changesets/action@v1
with:
version: pnpm ci:version
commit: "chore: update versions"
title: "chore: update versions"
publish: pnpm ci:publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
"analyze": "size-limit --why",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build",
"chromatic": "npx chromatic --project-token=46df7a59e0a8"
"chromatic": "npx chromatic --project-token=46df7a59e0a8",
"ci:publish": "pnpm publish -r"
},
"peerDependencies": {
"@react-three/drei": "^9.105.5",
Expand Down Expand Up @@ -67,6 +68,7 @@
}
],
"devDependencies": {
"@changesets/cli": "^2.27.10",
"@react-three/drei": "^9.105.5",
"@react-three/fiber": "8.13.3",
"@size-limit/esbuild": "^11.1.6",
Expand Down

0 comments on commit 90ee4e1

Please sign in to comment.