File tree Expand file tree Collapse file tree 2 files changed +25
-2
lines changed Expand file tree Collapse file tree 2 files changed +25
-2
lines changed Original file line number Diff line number Diff line change 1+ name : Publish Package to npmjs
2+ on :
3+ release :
4+ types : [created]
5+ jobs :
6+ build :
7+ runs-on : ubuntu-latest
8+ steps :
9+ - uses : actions/checkout@v3
10+ # Setup .npmrc file to publish to npm
11+ - uses : actions/setup-node@v3
12+ with :
13+ node-version : " 16.x"
14+ registry-url : " https://registry.npmjs.org"
15+ - name : Install Dependencies
16+ run : yarn install --frozen-lockfile
17+ # Writes token to .yarnrc.yml
18+ - name : Setup NPM auth token
19+ run : |
20+ echo npmAuthToken: "${NODE_AUTH_TOKEN}" >> ./.yarnrc.yml
21+ env :
22+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
23+ - run : yarn publish
Original file line number Diff line number Diff line change 11{
2- "version" : " 0.1.10 " ,
2+ "version" : " 0.2.0 " ,
33 "name" : " trino-client" ,
44 "description" : " Trino client library" ,
55 "author" : {
5050 "test:lint" : " eslint ." ,
5151 "publish" : " yarn build && yarn npm publish"
5252 }
53- }
53+ }
You can’t perform that action at this time.
0 commit comments