File tree Expand file tree Collapse file tree 2 files changed +69
-0
lines changed Expand file tree Collapse file tree 2 files changed +69
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Setup
2+ permissions :
3+ contents : read
4+ runs :
5+ using : composite
6+ steps :
7+ - uses : actions/setup-node@v4
8+ with :
9+ node-version-file : ' .nvmrc'
10+ registry-url : https://registry.npmjs.org
11+
12+ # For provenance https://docs.npmjs.com/generating-provenance-statements#prerequisites
13+ - name : Install npm 9.5
14+ run : npm install -g npm@^9.5.0
15+ shell : bash
16+
17+ - name : Install node modules
18+ run : yarn install --immutable
19+ shell : bash
Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ packageVersion :
7+ description : " The version to publish in MAJOR.MINOR.PATCH format"
8+ required : true
9+ default : " "
10+
11+ jobs :
12+ release :
13+ env :
14+ PACKAGE_VERSION : ${{ github.event.inputs.packageVersion }}
15+ name : Release
16+ runs-on : ubuntu-latest
17+ environment : release
18+ permissions :
19+ contents : write
20+ pull-requests : write
21+ id-token : write
22+ steps :
23+ - name : Checkout
24+ uses : actions/checkout@v4
25+ with :
26+ submodules : recursive
27+
28+ - name : ' Setup'
29+ uses : ./.github/actions/setup
30+
31+ - name : Set version
32+ run : yarn workspace @coinbase/wallet-sdk version ${{ env.PACKAGE_VERSION }}
33+
34+ # Build the package
35+ - name : Prebuild Packages
36+ run : yarn workspace @coinbase/wallet-sdk prebuild
37+
38+ - name : Build Packages
39+ run : yarn workspace @coinbase/wallet-sdk build
40+
41+ # Publish to npm
42+ - name : Set deployment token
43+ run : npm config set '//registry.npmjs.org/:_authToken' "${{ secrets.NPM_TOKEN }}"
44+
45+ - name : Publish to npm
46+ run : |
47+ cd packages/wallet-sdk
48+ npm publish --tag latest
49+ env :
50+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments