Skip to content

Commit 8cc77d5

Browse files
Attempt to add publishing to NPM via GitHub Actions
1 parent 8339887 commit 8cc77d5

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

.github/workflows/publish.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: NPM Publish
2+
3+
on:
4+
release:
5+
types: [created]
6+
workflow_dispatch:
7+
8+
env:
9+
NODE_VERSION: 16
10+
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
11+
12+
jobs:
13+
build-and-publish:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-node@v4
18+
with:
19+
node-version: ${{ env.NODE_VERSION }}
20+
registry-url: https://registry.npmjs.org/
21+
- name: Install Python setuptools
22+
run: python3 -m pip install --break-system-packages setuptools
23+
- name: Install Dependencies
24+
run: |
25+
npm ci
26+
- run: npm publish --access public

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "node-pty",
2+
"name": "@pulsar-edit/node-pty",
33
"description": "Fork pseudoterminals in Node.JS",
44
"author": {
55
"name": "Microsoft Corporation"

0 commit comments

Comments
 (0)