diff --git a/.changeset/config.json b/.changeset/config.json index eab4e7e..cde2580 100644 --- a/.changeset/config.json +++ b/.changeset/config.json @@ -1,10 +1,14 @@ { "$schema": "https://unpkg.com/@changesets/config@3.1.1/schema.json", "changelog": ["@changesets/changelog-github", { "repo": "pizzajsdev/pizzajs" }], - "baseBranch": "main", - "commit": true, + "baseBranch": "origin/main", + "commit": false, "access": "public", "updateInternalDependencies": "patch", "fixed": [], - "linked": [] + "linked": [], + "snapshot": { + "useCalculatedVersion": true, + "prereleaseTemplate": "{tag}-{datetime}-{commit}" + } } diff --git a/.changeset/weak-wings-stare.md b/.changeset/weak-wings-stare.md new file mode 100644 index 0000000..ccce185 --- /dev/null +++ b/.changeset/weak-wings-stare.md @@ -0,0 +1,5 @@ +--- +'@pizzajsdev/utils': patch +--- + +initial release diff --git a/.github/workflows/quality-check.yml b/.github/workflows/quality-check.yml index 394c288..bfe7a85 100644 --- a/.github/workflows/quality-check.yml +++ b/.github/workflows/quality-check.yml @@ -22,6 +22,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: 'Setup project' uses: ./.github/actions/setup-project @@ -32,7 +34,10 @@ jobs: - name: 'Lint' run: pnpm lint - - name: 'Run tests' + - name: 'Check missing changesets' + run: pnpm changeset status --since origin/main + + - name: 'Test' run: pnpm test - name: 'Build project' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9beee09..021dc4a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,6 +15,8 @@ concurrency: ${{ github.workflow }}-${{ github.ref }} jobs: release: + name: 'Release' + if: github.repository == 'pizzajsdev/pizzajs' permissions: contents: write packages: write @@ -31,7 +33,9 @@ jobs: NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: 'Lint' run: pnpm lint - - name: 'Run tests' + - name: 'Check missing changesets' + run: pnpm changeset status --since origin/main + - name: 'Test' run: pnpm test - name: Create Release Pull Request or Publish to package registry uses: changesets/action@v1 diff --git a/package.json b/package.json index f6dc5ac..74e2a41 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "type": "module", "scripts": { "build": "pnpm -r run build", + "changelog": "changeset", "dev": "pnpm -r --parallel run dev", "format": "pnpm format:prettier && pnpm format:pkg", "format:pkg": "bun run --bun sort-package-json package.json packages/*/package.json", diff --git a/packages/utils/package.json b/packages/utils/package.json index ca49605..d29badc 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,7 +1,7 @@ { "name": "@pizzajsdev/utils", "version": "0.3.0", - "description": "Utility functions for PizzaJS", + "description": "Utility functions for PizzaJS.", "homepage": "https://github.com/pizzajsdev/pizzajs#readme", "bugs": { "url": "https://github.com//pizzajsdev/pizzajs/issues"