Skip to content

Commit f6bfb02

Browse files
Coding-Dev-ToolsDevForge Engineer
andauthored
fix: restore npm-publish.yml — repo has legitimate npm wrapper (#9)
The npm-publish.yml was incorrectly removed in PR #8 based on the assumption that Python repos should not have npm-publish workflows. However, this repo has a legitimate npm wrapper (package.json + cli.js) that allows users to install via 'npm install -g configdrift'. The npm-publish workflow is needed to publish this wrapper to the npm registry. Reverts the npm-publish.yml removal from commit 888efcf. Co-authored-by: DevForge Engineer <engineer@devforge.dev>
1 parent 6cc7d71 commit f6bfb02

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/npm-publish.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Publish to npm
2+
3+
on:
4+
release:
5+
types: [published]
6+
workflow_dispatch:
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
14+
steps:
15+
- uses: actions/checkout@v6
16+
17+
- name: Set up Node.js
18+
uses: actions/setup-node@v6
19+
with:
20+
node-version: "22"
21+
registry-url: "https://registry.npmjs.org"
22+
23+
- name: Publish to npm
24+
env:
25+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
26+
run: |
27+
npm publish --access public

0 commit comments

Comments
 (0)