Skip to content

Commit

Permalink
chore: introduce changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
gtoselli committed Mar 27, 2024
1 parent 8ee7ba0 commit 502876c
Show file tree
Hide file tree
Showing 9 changed files with 1,438 additions and 21 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@3.0.0/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
27 changes: 10 additions & 17 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,14 @@ jobs:

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
publish:

version:
runs-on: ubuntu-latest
needs: build

if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v3

- uses: pnpm/action-setup@v2
with:
version: latest

- name: Setup Node.js 20
uses: actions/setup-node@v3
with:
Expand All @@ -62,19 +57,17 @@ jobs:
scope: '@fizzbuds'
cache: 'pnpm'

- name: Increase patch and commit
run: |
git config --global user.name 'GitHub Action'
git config --global user.email 'action@github'
pnpm version patch
- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Build and Publish
run: pnpm publish
- name: Create and publish versions
uses: changesets/action@v1
with:
version: pnpm ci:version
commit: "chore: update versions"
title: "chore: update versions"
publish: pnpm ci:publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Push Commit
run: git push --follow-tags
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@
"test": "pnpm run -r test",
"test:coverage": "pnpm run -r test:coverage",
"prepare": "husky install",
"check": "pnpm run -r check"
"check": "pnpm run -r check",
"ci:publish": "pnpm publish -r"
},
"devDependencies": {
"@changesets/cli": "^2.27.1",
"husky": "^8.0.0",
"lint-staged": "^14.0.1"
},
Expand Down
8 changes: 8 additions & 0 deletions packages/ddd-tookit/.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 packages/ddd-tookit/.changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/config@3.0.0/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
7 changes: 7 additions & 0 deletions packages/ddd-tookit/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# @fizzbuds/ddd-toolkit

## 0.0.32

### Patch Changes

- Introduce changeset
2 changes: 1 addition & 1 deletion packages/ddd-tookit/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fizzbuds/ddd-toolkit",
"version": "0.0.31",
"version": "0.0.32",
"description": "",
"author": "Gabriele Toselli, Luca Giovenzana",
"private": false,
Expand Down
Loading

0 comments on commit 502876c

Please sign in to comment.