Skip to content

Commit ba95dcb

Browse files
committed
Added github publish workflow
1 parent 35cf397 commit ba95dcb

2 files changed

Lines changed: 23 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,25 @@ jobs:
3030
run: npm publish --provenance --access public
3131
env:
3232
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
33+
github-publish:
34+
runs-on: ubuntu-latest
35+
36+
permissions:
37+
contents: read
38+
id-token: write
39+
packages: write
40+
41+
steps:
42+
- name: Checkout repository
43+
uses: actions/checkout@v4
44+
45+
- name: Setup Node.js
46+
uses: actions/setup-node@v4
47+
with:
48+
node-version: '20'
49+
registry-url: 'https://npm.pkg.github.com'
50+
51+
- name: Publish to npm
52+
run: npm publish
53+
env:
54+
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-plugin-shell-env",
3-
"version": "1.2.0",
3+
"version": "1.2.1",
44
"description": "OpenCode Plugin - Shell environment loader for .env variables",
55
"type": "module",
66
"main": "src/shell-env.ts",

0 commit comments

Comments
 (0)