Skip to content

Commit 58adf1c

Browse files
authored
ci(changelogs): configure commits and workflows (#1)
* ci(changelogs): configure commits and workflows * fix: ci workflows
1 parent b65d1ef commit 58adf1c

File tree

6 files changed

+25
-6
lines changed

6 files changed

+25
-6
lines changed

.changeset/config.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
{
22
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
33
"changelog": ["@changesets/changelog-github", { "repo": "pizzajsdev/pizzajs" }],
4-
"baseBranch": "main",
5-
"commit": true,
4+
"baseBranch": "origin/main",
5+
"commit": false,
66
"access": "public",
77
"updateInternalDependencies": "patch",
88
"fixed": [],
9-
"linked": []
9+
"linked": [],
10+
"snapshot": {
11+
"useCalculatedVersion": true,
12+
"prereleaseTemplate": "{tag}-{datetime}-{commit}"
13+
}
1014
}

.changeset/weak-wings-stare.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@pizzajsdev/utils': patch
3+
---
4+
5+
initial release

.github/workflows/quality-check.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ jobs:
2222
runs-on: ubuntu-latest
2323
steps:
2424
- uses: actions/checkout@v4
25+
with:
26+
fetch-depth: 0
2527

2628
- name: 'Setup project'
2729
uses: ./.github/actions/setup-project
@@ -32,7 +34,10 @@ jobs:
3234
- name: 'Lint'
3335
run: pnpm lint
3436

35-
- name: 'Run tests'
37+
- name: 'Check missing changesets'
38+
run: pnpm changeset status --since origin/main
39+
40+
- name: 'Test'
3641
run: pnpm test
3742

3843
- name: 'Build project'

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ concurrency: ${{ github.workflow }}-${{ github.ref }}
1515

1616
jobs:
1717
release:
18+
name: 'Release'
19+
if: github.repository == 'pizzajsdev/pizzajs'
1820
permissions:
1921
contents: write
2022
packages: write
@@ -31,7 +33,9 @@ jobs:
3133
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3234
- name: 'Lint'
3335
run: pnpm lint
34-
- name: 'Run tests'
36+
- name: 'Check missing changesets'
37+
run: pnpm changeset status --since origin/main
38+
- name: 'Test'
3539
run: pnpm test
3640
- name: Create Release Pull Request or Publish to package registry
3741
uses: changesets/action@v1

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"type": "module",
55
"scripts": {
66
"build": "pnpm -r run build",
7+
"changelog": "changeset",
78
"dev": "pnpm -r --parallel run dev",
89
"format": "pnpm format:prettier && pnpm format:pkg",
910
"format:pkg": "bun run --bun sort-package-json package.json packages/*/package.json",

packages/utils/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@pizzajsdev/utils",
33
"version": "0.3.0",
4-
"description": "Utility functions for PizzaJS",
4+
"description": "Utility functions for PizzaJS.",
55
"homepage": "https://github.com/pizzajsdev/pizzajs#readme",
66
"bugs": {
77
"url": "https://github.com//pizzajsdev/pizzajs/issues"

0 commit comments

Comments
 (0)