File tree Expand file tree Collapse file tree 5 files changed +40
-78
lines changed
Expand file tree Collapse file tree 5 files changed +40
-78
lines changed Original file line number Diff line number Diff line change 11name : Build o1js
22description : ' All of the building steps for o1js'
33
4- permissions :
5- contents : write
6-
74inputs :
85 proof_systems_commit :
96 description : ' proof_systems commit to use'
Original file line number Diff line number Diff line change 1+ name : Release pkg-pr version
2+ description : Release a new version of o1js and mina-signer using pkg-pr-new
3+
4+ runs :
5+ using : " composite"
6+ steps :
7+ - uses : actions/checkout@v4
8+ - name : Restore repository
9+ uses : actions/cache@v4
10+ with :
11+ path : .
12+ key : repo-${{ github.sha }}
13+ - name : Setup Node.JS 20
14+ uses : actions/setup-node@v4
15+ with :
16+ node-version : 20
17+ - name : build
18+ uses : ./.github/actions/build
19+ - name : Build o1js and mina-signer
20+ shell : bash
21+ run : |
22+ npm ci
23+ npm run prepublishOnly
24+ cd src/mina-signer
25+ npm ci
26+ npm run prepublishOnly
27+ - name : Publish o1js and mina-signer on pkg-pr-new
28+ shell : bash
29+ run : npx pkg-pr-new publish ./ ./src/mina-signer
30+
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1313 with :
1414 changelog : CHANGELOG.md
1515
16+ Pkg-pr-new :
17+ # Only run this job when the pull request contains the pkg‑pr‑release label.
18+ if : github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'pkg-pr-release')
19+ runs-on : ubuntu-latest
20+ steps :
21+ - name : release-pkg-pr-version
22+ uses : ./.github/actions/release-pkg-pr-version
23+
1624 Check-npm-deps :
1725 name : Check npmDepsHash is correct
1826 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change @@ -72,42 +72,10 @@ jobs:
7272
7373
7474 Pkg-pr-new :
75- strategy :
76- matrix :
77- node : [20]
78-
7975 runs-on : [ubuntu-latest]
8076 steps :
81- - uses : actions/checkout@v4
82- - name : Restore repository
83- uses : actions/cache@v4
84- with :
85- path : .
86- key : repo-${{ github.sha }}
87- - name : Setup Node.JS ${{ matrix.node }}
88- uses : actions/setup-node@v4
89- with :
90- node-version : ${{ matrix.node }}
91- - name : build
92- uses : ./.github/actions/build
93- - name : Build o1js and mina-signer
94- run : |
95- npm run prepublishOnly
96- cd src/mina-signer
97- npm ci
98- npm run prepublishOnly
99- - name : Publish o1js and mina-signer on pkg-pr-new
100- run : npx pkg-pr-new publish ./ ./src/mina-signer # Enable `--compact` once published to NPM with `repository` in package.json
101-
102- # TODO is this redundant with the last step?
103- - name : Publish to NPM if version has changed
104- uses : JS-DevTools/npm-publish@v3
105- with :
106- token : ${{ secrets.NPM_TOKEN }}
107- package : ' ./src/mina-signer/package.json'
108- strategy : upgrade
109- env :
110- INPUT_TOKEN : ${{ secrets.NPM_TOKEN }}
77+ - name : release-pkg-pr-version
78+ uses : ./.github/actions/release-pkg-pr-version
11179
11280 Release-on-NPM :
11381 if : github.ref == 'refs/heads/main'
You can’t perform that action at this time.
0 commit comments