Skip to content

Commit

Permalink
feat: changeset & workflow (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
iamdin authored Oct 17, 2024
1 parent b4b14ec commit 77b4610
Show file tree
Hide file tree
Showing 13 changed files with 625 additions and 123 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)
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/changelog-github", { "repo": "shipbase/ui" }],
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
5 changes: 5 additions & 0 deletions .changeset/many-dogs-invite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"shipbase-ui": patch
---

init command
9 changes: 9 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"mode": "pre",
"tag": "beta",
"initialVersions": {
"www": "0.0.0",
"shipbase-ui": "0.0.0"
},
"changesets": []
}
53 changes: 0 additions & 53 deletions .github/workflows/code-check.yml

This file was deleted.

28 changes: 28 additions & 0 deletions .github/workflows/quality.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Code check

on:
push:
branches: ['main']
pull_request:
branches: ['main']

jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Enable corepack
run: corepack enable
shell: bash

- name: Setup Node & Pnpm
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: pnpm

- run: pnpm install --frozen-lockfile
- run: pnpm run check
- run: pnpm dlx turbo test check:type
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Release
on:
push:
branches:
- main

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm

- run: pnpm install --frozen-lockfile
- run: pnpm build --filter=shipbase-ui

- name: Publish to NPM
id: changesets
uses: changesets/action@v1
with:
publish: pnpm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}
37 changes: 0 additions & 37 deletions .github/workflows/test.yml

This file was deleted.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
},
"devDependencies": {
"@biomejs/biome": "1.9.3",
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.9",
"@turbo/gen": "^2.1.3",
"@types/node": "^20.16.11",
"dotenv": "^16.4.5",
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/test/utils/detect-package-manager.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ test("detect package manager", async () => {
).toMatchObject({
name: "bun",
command: "bun",
lockFile: "bun.lockb",
lockFile: ["bun.lockb", "bun.lock"],
})
})
1 change: 0 additions & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "@ui/react",
"version": "0.0.0",
"type": "module",
"private": true,
"exports": {
Expand Down
1 change: 0 additions & 1 deletion packages/vue/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "@ui/vue",
"version": "0.0.0",
"private": true,
"type": "module",
"exports": {
Expand Down
Loading

0 comments on commit 77b4610

Please sign in to comment.