Skip to content

Commit f3ee49c

Browse files
committed
chore: bump version to 0.0.17 and publish to github packages
1 parent 4ee8ef5 commit f3ee49c

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

.github/workflows/publish.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
jobs:
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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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": {

0 commit comments

Comments
 (0)