Skip to content

Commit

Permalink
infra: install changeset to handle versioning and publishing, create …
Browse files Browse the repository at this point in the history
…github workflow
  • Loading branch information
ElRodrigote committed May 29, 2024
1 parent 90c83a0 commit b5b2c50
Show file tree
Hide file tree
Showing 7 changed files with 71 additions and 8 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/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
6 changes: 6 additions & 0 deletions .changeset/tiny-hornets-visit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@swapr-configs/typescript-config": major
"@swapr-configs/eslint-config": major
---

Base groundwork for config repos, bundling, versioning and publishing
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Release

on:
push:
branches:
- main

concurrency: ${{ github.workflow }}-${{ github.ref }}

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

- name: Setup Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18Y

- name: Install Dependencies
run: yarn

- name: Create Release Pull Request
uses: changesets/action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Binary file modified bun.lockb
Binary file not shown.
20 changes: 13 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "swapr-configs",
"version": "1.0.1",
"description": "Atomic monorepo to share config settings across projects",
"keywords": [
"ui",
Expand All @@ -9,20 +10,25 @@
"tsconfig"
],
"license": "ISC",
"version": "1.0.1",
"workspaces": [
"packages/*"
],
"scripts": {
"clean": "npx rimraf node_modules"
"build": "turbo run build",
"clean": "turbo run clean && npx rimraf node_modules && npx rimraf .turbo",
"publish-packages": "turbo run build && changeset version && changeset publish"
},
"dependencies": {
"@changesets/cli": "^2.27.5"
},
"devDependencies": {
"@swapr-configs/eslint-config": "workspace:*",
"@swapr-configs/typescript-config": "workspace:*",
"tsup": "^8.0.2",
"turbo": "latest"
},
"packageManager": "[email protected]",
"engines": {
"node": ">=18"
},
"packageManager": "[email protected]",
"workspaces": [
"packages/*"
]
}
}
5 changes: 4 additions & 1 deletion turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
"pipeline": {
"build": {
"dependsOn": ["^build"],
"outputs": [".next/**", "!.next/cache/**"]
"outputs": [".next/**", "!.next/cache/**", "dist/**"]
},
"clean": {
"cache": false
},
"lint": {
"dependsOn": ["^lint"]
Expand Down

0 comments on commit b5b2c50

Please sign in to comment.