Skip to content

Publish Node SDK to npm #1

Publish Node SDK to npm

Publish Node SDK to npm #1

name: Publish Node SDK to GitHub Packages
on:
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
registry-url: 'https://npm.pkg.github.com'
scope: '@makeplane'
- name: Install dependencies and build
run: npm ci
- name: Configure npm for GitHub Packages
run: npm config set @makeplane:registry https://npm.pkg.github.com
- name: Publish to GitHub Packages
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}