diff --git a/.github/workflows/release-client.yml b/.github/workflows/release-client.yml index 3acef217..bb0a5c3c 100644 --- a/.github/workflows/release-client.yml +++ b/.github/workflows/release-client.yml @@ -4,6 +4,8 @@ on: branches: - 'develop' - 'main' + - 'release/*' # Add this line to include all release branches + jobs: checkversion: runs-on: ubuntu-latest @@ -56,7 +58,13 @@ jobs: run: | cat package.json - # Create github release + # Publish to NPM + - uses: JS-DevTools/npm-publish@v3 + with: + token: ${{ secrets.NPM_TOKEN }} + package: package.json + + # Create GitHub release - name: Create release uses: actions/create-release@v1 id: create_release @@ -84,8 +92,3 @@ jobs: asset_name: dist-client-${{ env.CLIENT_VERSION }}.zip asset_content_type: application/zip - # Publish to NPM - - uses: JS-DevTools/npm-publish@v3 - with: - token: ${{ secrets.NPM_TOKEN }} - package: package.json