Skip to content

Commit

Permalink
deps: changesets
Browse files Browse the repository at this point in the history
  • Loading branch information
goulvenclech committed Mar 30, 2024
1 parent 7f25168 commit 7555128
Show file tree
Hide file tree
Showing 7 changed files with 1,561 additions and 5 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": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
5 changes: 5 additions & 0 deletions .changeset/cool-hounds-wash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"astropi": minor
---

First alpha release of Astropi 🚀
41 changes: 41 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Release

on:
push:
branches:
- main

jobs:
release:
name: Release
if: ${{ github.repository_owner == 'goulvenclech' }}
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0

- name: Setup PNPM
uses: pnpm/action-setup@v3

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18
cache: "pnpm"

- name: Install Dependencies
run: pnpm i

- name: Create Release Pull Request
uses: changesets/action@v1
with:
version: pnpm run version
publish: pnpm changeset publish
commit: "[ci] release"
title: "[ci] release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
{
"name": "astropi-root",
"private": true,
"version": "1.0.0",
"version": "0.0.1",
"description": "",
"scripts": {},
"keywords": [],
"author": "",
"license": "ISC",
"packageManager": "[email protected]",
"devDependencies": {
"astro": "^4.0.0"
},
"dependencies": {
"@changesets/cli": "^2.27.1"
}
}
11 changes: 9 additions & 2 deletions packages/astropi/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
{
"name": "astropi",
"version": "0.0.1",
"version": "0.0.0",
"scripts": {},
"main": "index.ts",
"author": "Goulven Clec'h <[email protected]>",
"description": "Build beautiful and accessible API documentations with Astro 🪐",
"repository": {
"type": "git",
"url": "https://github.com/goulvenclech/astropi",
"directory": "packages/astropi"
},
"bugs": "https://github.com/goulvenclech/astropi/issues",
"homepage": "https://astropi.goulven-clech.dev",
"keywords": [
"astro",
"documentation",
Expand All @@ -13,7 +20,7 @@
"open-api",
"astropi"
],
"license": "ISC",
"license": "MIT",
"peerDependencies": {
"astro": "^4.0.0"
}
Expand Down
Loading

0 comments on commit 7555128

Please sign in to comment.