From 77d1897e2a60345a6f10d45f7e165c586c4b7556 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABlle=20Huisman?= Date: Fri, 16 Jan 2026 19:25:16 +0100 Subject: [PATCH] ci: add GitHub Packages publishing --- .github/workflows/publish.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c203e15..482d805 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -30,5 +30,17 @@ jobs: - name: Build run: npm run build - - name: Publish - run: npm publish --access public --workspaces + - name: Publish to npm + run: npm publish --access public --registry https://registry.npmjs.org --workspaces + + - name: Set up Node.js + uses: actions/setup-node@v6 + with: + node-version: 'lts/*' + cache: 'npm' + registry-url: 'https://npm.pkg.github.com' + + - name: Publish to GitHub Packages + run: npm publish --access public --registry https://npm.pkg.github.com --workspaces + env: + NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}