File tree Expand file tree Collapse file tree 2 files changed +17
-5
lines changed
Expand file tree Collapse file tree 2 files changed +17
-5
lines changed Original file line number Diff line number Diff line change 88jobs :
99 publish :
1010 runs-on : ubuntu-latest
11+ permissions :
12+ contents : read
13+ packages : write
1114 steps :
1215 - uses : actions/checkout@v3
1316 - name : Install Node.js
@@ -20,15 +23,24 @@ jobs:
2023 run : npm run build
2124 - name : Configure Git
2225 run : |
23- git config user.name "${{ github.actor }}"
24- git config user.email "${{ github.actor }}@users.noreply.github.com"
26+ git config user.name "${{ github.actor }}"
27+ git config user.email "${{ github.actor }}@users.noreply.github.com"
2528
2629 - name : " Setup npm for npmjs"
2730 run : |
28- npm config set registry https://registry.npmjs.org/
29- echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
31+ npm config set registry https://registry.npmjs.org/
32+ echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
3033 - name : Publish
3134 env :
3235 NPM_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
3336 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
3437 run : npm publish --access public
38+
39+ - name : " Setup npm for GitHub Packages"
40+ run : |
41+ npm config set registry https://npm.pkg.github.com/
42+ echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" > ~/.npmrc
43+ - name : Publish to GitHub Packages
44+ env :
45+ NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
46+ run : npm publish
Original file line number Diff line number Diff line change 22 "name" : " @romeoscript/agent-twitter-client" ,
33 "description" : " A twitter client for agents" ,
44 "keywords" : [],
5- "version" : " 0.0.16 " ,
5+ "version" : " 0.0.17 " ,
66 "main" : " dist/default/cjs/index.js" ,
77 "types" : " ./dist/types/index.d.ts" ,
88 "exports" : {
You can’t perform that action at this time.
0 commit comments