Skip to content

Commit f07ee25

Browse files
add github action to publish package
1 parent 2620a67 commit f07ee25

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Publish Node SDK to GitHub Packages
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
publish:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
contents: read
11+
packages: write
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-node@v4
15+
with:
16+
node-version: '20'
17+
registry-url: 'https://npm.pkg.github.com'
18+
scope: '@makeplane'
19+
20+
- name: Install dependencies and build
21+
run: npm ci
22+
23+
- name: Configure npm for GitHub Packages
24+
run: npm config set @makeplane:registry https://npm.pkg.github.com
25+
26+
- name: Publish to GitHub Packages
27+
run: npm publish
28+
env:
29+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)