File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed
Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Publish packages on NPM
2+ on :
3+ # release:
4+ # types: [created]
5+ workflow_dispatch :
6+
7+ jobs :
8+ build :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - uses : actions/checkout@v4
12+ - uses : actions/setup-node@v4
13+ with :
14+ node-version : ' 18.x'
15+ - run : yarn config set npmAuthToken $NPM_PUBLISH_TOKEN
16+ env :
17+ NPM_PUBLISH_TOKEN : ${{ secrets.NPM_PUBLISH_TOKEN }}
18+ - run : yarn clean
19+ - run : yarn build-ci
20+ - run : yarn pack
21+ - run : npm publish
Original file line number Diff line number Diff line change 55 "main" : " build/index.js" ,
66 "scripts" : {
77 "build" : " expo-module build" ,
8+ "build-ci" : " expo-module prepublishOnly" ,
89 "clean" : " expo-module clean" ,
910 "check-licenses" : " node bin/check-licenses.js" ,
1011 "test" : " expo-module test" ,
You can’t perform that action at this time.
0 commit comments