File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : PKG PR New
2+ on :
3+ workflow_dispatch :
4+ pull_request :
5+ types : [opened, synchronize, ready_for_review]
6+ push :
7+ branches :
8+ - main
9+
10+ jobs :
11+ build :
12+ runs-on : ubuntu-latest
13+
14+ steps :
15+ - name : Checkout code
16+ uses : actions/checkout@v4
17+
18+ - uses : actions/setup-node@v4
19+ with :
20+ node-version : 20
21+
22+ - run : yarn --frozen-lockfile
23+
24+ # append the git commit to the package.json version.
25+ # We do this because some cache mechanisms (like nextjs) don't work well with the same version and ignore the changes
26+ # until you manually delete the cache
27+ - run : jq '.version = .version + "-" + env.GITHUB_SHA' package.json > package.json.tmp && mv package.json.tmp package.json
28+
29+ - run : npx pkg-pr-new publish
Original file line number Diff line number Diff line change @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77
88## [ Unreleased]
99
10+ ### Added
11+
12+ - Added the pkg.pr.new workflow.
13+
1014## [ 4.2.0] - 2024-10-08
1115
1216### Added
You can’t perform that action at this time.
0 commit comments