Skip to content

Commit

Permalink
chore: add changesets (#11)
Browse files Browse the repository at this point in the history
* chore: add changesets

* Create smooth-llamas-roll.md
  • Loading branch information
kotarella1110 committed Aug 7, 2023
1 parent 50400c2 commit c4fb13f
Show file tree
Hide file tree
Showing 9 changed files with 1,479 additions and 58 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/config@2.3.1/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
5 changes: 5 additions & 0 deletions .changeset/smooth-llamas-roll.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"pr-voyager": patch
---

chore: add changesets
27 changes: 27 additions & 0 deletions .github/workflows/version-or-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Version or Publish

on:
push:
branches:
- main

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

jobs:
changesets:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16]
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-pnpm
with:
node-version: ${{ matrix.node-version }}
- id: changesets
uses: changesets/action@v1
with:
version: pnpm bump
publish: pnpm release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
run: pnpm build

- name: Publish to npm
uses: kotarella1110/pr-voyager
uses: kotarella1110/pr-voyager@0
with:
publish: pnpm publish -r
env:
Expand Down
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
"check:tsc": "tsc --noEmit",
"check:prettier": "prettier . --ignore-path .gitignore --ignore-path .prettierignore --check",
"fix": "run-s fix:*",
"fix:prettier": "prettier . --ignore-path .gitignore --ignore-path .prettierignore --write --cache"
"fix:prettier": "prettier . --ignore-path .gitignore --ignore-path .prettierignore --write --cache",
"changeset": "changeset",
"bump": "node ./scripts/bump.js",
"release": "node ./scripts/release.js"
},
"author": "kotarella1110",
"license": "MIT",
Expand All @@ -20,9 +23,11 @@
"fs-extra": "^11.1.1"
},
"devDependencies": {
"@changesets/cli": "^2.26.2",
"@types/fs-extra": "^11.0.1",
"@types/node": "^18.16.3",
"@vercel/ncc": "^0.36.1",
"changesets": "^1.0.2",
"npm-run-all": "^4.1.5",
"prettier": "^3.0.1",
"rimraf": "^5.0.1",
Expand Down

0 comments on commit c4fb13f

Please sign in to comment.