Skip to content

Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.

ci(github): add NPM workflows

johaven070821c1018b
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 91621a03..1d3d0104 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -22,6 +22,31 @@ jobs:
- name: Build release archives
run: npm run release:build
+ # Publish to NPM
+ - name: Setup Node for npmjs
+ uses: actions/setup-node@v4
+ with:
+ node-version: 22
+ registry-url: 'https://registry.npmjs.org/'
+ - name: Publish to npmjs.org
+ working-directory: release/sync-in-server
+ env:
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
+ run: npm publish
+
+ # Publish to GitHub Packages
+ - name: Setup Node for GitHub Packages
+ uses: actions/setup-node@v4
+ with:
+ node-version: 22
+ registry-url: 'https://npm.pkg.github.com/'
+ scope: '@${{ github.repository_owner }}'
+ - name: Publish to GitHub Packages
+ working-directory: release/sync-in-server
+ env:
+ NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ run: npm publish
+
- name: Extract changelog for current version
id: changelog
run: |