File tree Expand file tree Collapse file tree 3 files changed +83
-23
lines changed
Expand file tree Collapse file tree 3 files changed +83
-23
lines changed Original file line number Diff line number Diff line change 1+ name : Checking Dependencies
2+
3+ on :
4+ workflow_dispatch :
5+ pull_request :
6+ branches : [main]
7+ push :
8+ branches : [main]
9+
10+ jobs :
11+ dist-deps-prune :
12+ runs-on : ubuntu-latest
13+ steps :
14+ - uses : actions/checkout@v6
15+ - uses : pnpm/action-setup@v4
16+ - uses : actions/setup-node@v6
17+ with :
18+ node-version : 24.13.0
19+ cache : pnpm
20+
21+ - run : pnpm install --frozen-lockfile
22+ - run : pnpm -C packages/app build
23+
24+ - name : Dist deps prune (lint)
25+ run : |
26+ pnpm dlx @prover-coder-ai/dist-deps-prune scan \
27+ --package ./packages/app/package.json \
28+ --prune-dev true \
29+ --silent
Original file line number Diff line number Diff line change 11name : Release
22on :
3- push :
3+ workflow_run :
4+ workflows : ["Check"]
45 branches : [main]
6+ types : [completed]
57
6- concurrency :
7- group : ${{ github.workflow }}-${{ github.ref }}
8-
9- permissions : {}
8+ permissions :
9+ contents : write
10+ actions : write
11+ id-token : write
12+ pull-requests : write
13+ packages : write
1014
1115jobs :
1216 release :
13- name : Release
17+ if : github.event.workflow_run.conclusion == 'success'
1418 runs-on : ubuntu-latest
15- timeout-minutes : 10
16- permissions :
17- contents : write
18- id-token : write
19- pull-requests : write
2019 steps :
21- - uses : actions/checkout@v6
22- - name : Install dependencies
23- uses : ./.github/actions/setup
24- - name : Create Release Pull Request or Publish
25- uses : changesets/action@v1
20+ - uses : ProverCoderAI/action-release@v1.0.17
2621 with :
27- version : pnpm changeset-version
28- publish : pnpm changeset-publish
29- env :
30- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
31- NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
22+ github_token : ${{ secrets.GITHUB_TOKEN }}
23+ npm_token : ${{ secrets.NPM_TOKEN }}
24+ ref : ${{ github.event.workflow_run.head_sha }}
25+ branch : ${{ github.event.workflow_run.head_branch }}
26+ package_json_path : packages/app/package.json
27+ pnpm_filter : ./packages/app
28+ bump_type : patch
29+ publish_npm : true
30+ publish_github_packages : true
31+ skip_if_unchanged : true
32+ cancel_on_no_changes : true
Original file line number Diff line number Diff line change @@ -11,15 +11,45 @@ permissions:
1111jobs :
1212 snapshot :
1313 name : Snapshot
14- if : github.repository_owner == 'skulidropek '
14+ if : github.repository_owner == 'ProverCoderAI '
1515 runs-on : ubuntu-latest
1616 timeout-minutes : 10
1717 steps :
1818 - uses : actions/checkout@v6
1919 - name : Install dependencies
2020 uses : ./.github/actions/setup
21+ with :
22+ node-version : 22.12.0
2123 - name : Build package
2224 run : pnpm build
2325 - name : Create snapshot
2426 id : snapshot
25- run : pnpx pkg-pr-new@0.0.24 publish --pnpm --comment=off
27+ env :
28+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
29+ shell : bash
30+ working-directory : packages/app
31+ run : |
32+ set +e
33+ pnpx pkg-pr-new@0.0.24 publish --pnpm --comment=off
34+ STATUS=$?
35+ if [ $STATUS -eq 0 ]; then
36+ echo "success=true" >> "$GITHUB_OUTPUT"
37+ else
38+ echo "success=false" >> "$GITHUB_OUTPUT"
39+ echo "pkg-pr-new failed (likely app not installed); falling back to artifacts."
40+ fi
41+ exit 0
42+ - name : Fallback snapshot artifacts
43+ if : steps.snapshot.outputs.success != 'true'
44+ shell : bash
45+ run : |
46+ set -euo pipefail
47+ mkdir -p artifacts
48+ cd packages/app
49+ npm pack --silent --pack-destination ../../artifacts
50+ - name : Upload snapshot artifacts
51+ if : steps.snapshot.outputs.success != 'true'
52+ uses : actions/upload-artifact@v6
53+ with :
54+ name : context-doc-snapshot
55+ path : artifacts/*.tgz
You can’t perform that action at this time.
0 commit comments