File tree Expand file tree Collapse file tree 3 files changed +84
-25
lines changed
Expand file tree Collapse file tree 3 files changed +84
-25
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 55 branches : [main, next-minor, next-major]
66 workflow_dispatch :
77
8- permissions :
9- contents : read
8+ permissions : {}
109
1110jobs :
1211 snapshot :
1312 name : Snapshot
14- if : github.repository_owner == 'skulidropek '
13+ if : github.repository_owner == 'ProverCoderAI '
1514 runs-on : ubuntu-latest
1615 timeout-minutes : 10
1716 steps :
1817 - uses : actions/checkout@v6
1918 - name : Install dependencies
2019 uses : ./.github/actions/setup
20+ with :
21+ node-version : 22.12.0
2122 - name : Build package
2223 run : pnpm build
2324 - name : Create snapshot
2425 id : snapshot
25- run : pnpx pkg-pr-new@0.0.24 publish --pnpm --comment=off
26+ env :
27+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
28+ shell : bash
29+ working-directory : packages/app
30+ run : |
31+ set +e
32+ pnpx pkg-pr-new@0.0.24 publish --pnpm --comment=off
33+ STATUS=$?
34+ if [ $STATUS -eq 0 ]; then
35+ echo "success=true" >> "$GITHUB_OUTPUT"
36+ else
37+ echo "success=false" >> "$GITHUB_OUTPUT"
38+ echo "pkg-pr-new failed (likely app not installed); falling back to artifacts."
39+ fi
40+ exit 0
41+ - name : Fallback snapshot artifacts
42+ if : steps.snapshot.outputs.success != 'true'
43+ shell : bash
44+ run : |
45+ set -euo pipefail
46+ mkdir -p artifacts
47+ cd packages/app
48+ npm pack --silent --pack-destination ../../artifacts
49+ - name : Upload snapshot artifacts
50+ if : steps.snapshot.outputs.success != 'true'
51+ uses : actions/upload-artifact@v6
52+ with :
53+ name : context-doc-snapshot
54+ path : artifacts/*.tgz
You can’t perform that action at this time.
0 commit comments