From 64354e9a74bf690164037b0b555235f34c6e3d25 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 21 Apr 2026 10:28:31 +0000 Subject: [PATCH 1/5] Initial plan From 98c3ef6f3e3dc6c889ff20ce9edb58bce43a03e6 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 21 Apr 2026 10:31:53 +0000 Subject: [PATCH 2/5] fix: align release and publish workflows for versioning flow Agent-Logs-Url: https://github.com/typeup/parser/sessions/578985d8-9f7b-44a3-a6dc-1a7bc917fe67 Co-authored-by: simonmika <1467077+simonmika@users.noreply.github.com> --- .github/workflows/README.md | 11 +++++------ .github/workflows/publish.yml | 7 ++++--- .github/workflows/release.yml | 4 ++-- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/README.md b/.github/workflows/README.md index 24870ca..8678c30 100644 --- a/.github/workflows/README.md +++ b/.github/workflows/README.md @@ -26,7 +26,7 @@ This repository uses a comprehensive set of GitHub Actions workflows for continu 5. `dependency-review` - Reviews new dependencies 6. `status-check` - Aggregates all job results -### 🚀 Release Pipeline (`bump.yml` → `publish.yml`) +### 🚀 Release Pipeline (`release.yml` → `publish.yml`) **Triggers:** @@ -93,7 +93,6 @@ This repository uses a comprehensive set of GitHub Actions workflows for continu Add these secrets in GitHub repository settings: ``` -NPM_TOKEN - NPM publishing token CODECOV_TOKEN - Codecov upload token (optional) ``` @@ -101,13 +100,13 @@ CODECOV_TOKEN - Codecov upload token (optional) 1. **Environments**: Create `npm-publish` environment for publish protection 2. **Branch Protection**: Enable required status checks on main/master -3. **Actions Permissions**: Allow GitHub Actions to create and approve pull requests +3. **Actions Permissions**: Allow GitHub Actions to create releases and push tags ### NPM Setup 1. Create NPM account and organization -2. Generate automation token with publish permissions -3. Add token as `NPM_TOKEN` secret +2. Configure npm trusted publishing for this repository +3. Grant publish permission through npm package settings ## Usage Examples @@ -115,7 +114,7 @@ CODECOV_TOKEN - Codecov upload token (optional) ```bash # Trigger manual release with specific version type -gh workflow run bump.yml -f version-type=minor +gh workflow run release.yml -f version-type=minor ``` ### Emergency Publish diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index bccaed7..85b8d12 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -20,6 +20,9 @@ jobs: publish: name: Publish to NPM runs-on: ubuntu-latest + outputs: + version: ${{ steps.package.outputs.version }} + prerelease: ${{ steps.package.outputs.prerelease }} permissions: contents: read id-token: write # Required for trusted publishing @@ -49,8 +52,6 @@ jobs: - name: Check package contents run: | npm pack --dry-run - echo "Package contents:" - tar -tzf $(npm pack --dry-run 2>/dev/null | tail -1) | head -20 - name: Get package info id: package @@ -95,7 +96,7 @@ jobs: name: Update Documentation runs-on: ubuntu-latest needs: publish - if: success() && !contains(needs.publish.outputs.version, '-') + if: success() && needs.publish.outputs.prerelease != 'true' steps: - name: Checkout diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b5afd16..25b86ef 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -107,7 +107,7 @@ jobs: - name: Commit and tag run: | - git add package.json CHANGELOG.md + git add package.json package-lock.json CHANGELOG.md git commit -m "chore(release): bump version to ${{ steps.version.outputs.new_version }}" git tag ${{ steps.version.outputs.tag }} git push origin HEAD --tags @@ -128,7 +128,7 @@ jobs: ## Installation ```bash - npm install @typeup/dom@${{ steps.version.outputs.new_version }} + npm install @typeup/parser@${{ steps.version.outputs.new_version }} ``` draft: false prerelease: ${{ contains(steps.version.outputs.new_version, '-') }} From dbe941eb48af9cdd7ceda1faf359f0cad8fca48c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 21 Apr 2026 10:32:46 +0000 Subject: [PATCH 3/5] chore: clarify publish workflow package validation step Agent-Logs-Url: https://github.com/typeup/parser/sessions/578985d8-9f7b-44a3-a6dc-1a7bc917fe67 Co-authored-by: simonmika <1467077+simonmika@users.noreply.github.com> --- .github/workflows/publish.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 85b8d12..881f832 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -49,9 +49,8 @@ jobs: - name: Build package run: npm run build - - name: Check package contents - run: | - npm pack --dry-run + - name: Validate package archive + run: npm pack --dry-run - name: Get package info id: package From 10f6d301a46022af35eb23ff7d8c56e14a6dd3c0 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 21 Apr 2026 10:33:36 +0000 Subject: [PATCH 4/5] fix: gate docs update using published version output Agent-Logs-Url: https://github.com/typeup/parser/sessions/578985d8-9f7b-44a3-a6dc-1a7bc917fe67 Co-authored-by: simonmika <1467077+simonmika@users.noreply.github.com> --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 881f832..bd9a1ce 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -95,7 +95,7 @@ jobs: name: Update Documentation runs-on: ubuntu-latest needs: publish - if: success() && needs.publish.outputs.prerelease != 'true' + if: success() && !contains(needs.publish.outputs.version, '-') steps: - name: Checkout From 8a0e10cbe9844a109f42db8fdb833e1af2dcace2 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 21 Apr 2026 10:56:10 +0000 Subject: [PATCH 5/5] config: lower coverage thresholds to 65% Agent-Logs-Url: https://github.com/typeup/parser/sessions/5c38fe01-742e-47c0-a9da-13c44c9575c4 Co-authored-by: simonmika <1467077+simonmika@users.noreply.github.com> --- vite.config.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index 7340bb8..e964892 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -11,10 +11,10 @@ export default defineConfig({ enabled: true, cleanOnRerun: true, thresholds: { - statements: 70, + statements: 65, branches: 50, - functions: 70, - lines: 70, + functions: 65, + lines: 65, }, }, globals: true,