From eac7abd6700581e03e84015cc22be151d4482d3a Mon Sep 17 00:00:00 2001 From: Jaseel <12792882+Spikatrix@users.noreply.github.com> Date: Mon, 16 Feb 2026 18:53:11 +0530 Subject: [PATCH] feat(ci): publish to github packages as well --- .github/workflows/release.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 037f0b1..a1398b9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,13 +14,14 @@ jobs: runs-on: ubuntu-22.04 permissions: contents: write + packages: write steps: - name: Checkout uses: actions/checkout@v4 with: token: ${{ secrets.GH_BOT_TOKEN }} - - name: Setup Node.js + - name: Setup Node.js with NPM Registry uses: actions/setup-node@v4 with: node-version: '20.x' @@ -59,3 +60,20 @@ jobs: fi env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + + - name: Setup Node.js with GitHub Registry + uses: actions/setup-node@v4 + with: + node-version: '20.x' + registry-url: 'https://npm.pkg.github.com' + scope: '@${{ github.repository_owner }}' + + - name: Publish to GitHub Packages + run: | + if [ "${{ github.ref_name }}" == "main" ]; then + yarn lerna publish from-package --yes --no-private --loglevel silly --preid beta --dist-tag beta + else + yarn lerna publish from-package --yes --no-private --loglevel silly + fi + env: + NODE_AUTH_TOKEN: ${{ github.token }}