Skip to content

Commit e025977

Browse files
committed
feat: Added github publish
1 parent c9ede98 commit e025977

2 files changed

Lines changed: 22 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,24 @@ jobs:
2828
run: npm publish --provenance --access public
2929
env:
3030
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
31+
github-publish:
32+
runs-on: ubuntu-latest
33+
34+
permissions:
35+
contents: read
36+
id-token: write
37+
38+
steps:
39+
- name: Checkout repository
40+
uses: actions/checkout@v4
41+
42+
- name: Setup Node.js
43+
uses: actions/setup-node@v4
44+
with:
45+
node-version: '20'
46+
registry-url: 'https://npm.pkg.github.com'
47+
48+
- name: Publish to npm
49+
run: npm publish
50+
env:
51+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@techdivision/opencode-cli",
3-
"version": "0.3.1",
3+
"version": "0.3.2",
44
"description": "CLI tools for OpenCode plugin management",
55
"type": "module",
66
"bin": {

0 commit comments

Comments
 (0)