Skip to content

Commit

Permalink
Merge pull request #14 from tonik/feat/changesets
Browse files Browse the repository at this point in the history
feat/changesets
  • Loading branch information
maneike authored Oct 29, 2024
2 parents cce3451 + 0a59ad1 commit f490803
Show file tree
Hide file tree
Showing 8 changed files with 551 additions and 3 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", { "repo": "tonik/stapler" }],
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
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": "alpha",
"initialVersions": {
"@create-stapler-app/cli": "0.1.0",
"@create-stapler-app/core": "0.1.0"
},
"changesets": []
}
38 changes: 38 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Release

on:
push:
branches:
- main # or your default branch

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 20.x
uses: actions/setup-node@v3
with:
node-version: 20.x

- name: Setup pnpm
uses: pnpm/[email protected]
with:
version: 9.6.0

- name: Install Dependencies
run: pnpm install

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
publish: pnpm release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"name": "stapler",
"description": "Stapler: an amazing CLI tool that scaffolds an entire fullstack app for you",
"version": "0.1.0",
"private": true,
"scripts": {
"build": "turbo build",
Expand All @@ -8,6 +10,7 @@
"format": "prettier --write \"**/*.{ts,tsx,md}\""
},
"devDependencies": {
"@changesets/cli": "^2.27.9",
"prettier": "^3.2.5",
"turbo": "^2.1.1",
"typescript": "^5.4.5"
Expand All @@ -16,8 +19,6 @@
"engines": {
"node": ">=18"
},
"description": "This is an official starter Turborepo.",
"version": "1.0.0",
"main": "index.js",
"dependencies": {
"eslint": "^8.57.0",
Expand Down
6 changes: 5 additions & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
{
"name": "@create-stapler-app/cli",
"name": "@tonik/create-stapler-app",
"version": "0.1.0",
"main": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"bin": {
"create-stapler-app": "./dist/index.mjs"
},
"publishConfig": {
"access": "public",
"tag": "alpha"
},
"scripts": {
"build": "tsup index.ts --out-dir dist --format esm --dts",
"dev": "tsc -w"
Expand Down
1 change: 1 addition & 0 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "0.1.0",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"private": true,
"scripts": {
"build": "tsc --emitDeclarationOnly && tsup index.ts --out-dir dist --format cjs",
"dev": "tsc -w"
Expand Down
Loading

0 comments on commit f490803

Please sign in to comment.