diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ea59121d7..a1cda3418 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -98,6 +98,13 @@ jobs: package: ./themes/theme/package.json + - name: 📦 @uiw/codemirror-themes-all publish to NPM + uses: JS-DevTools/npm-publish@v1 + with: + token: ${{ secrets.NPM_TOKEN }} + package: ./themes/all/package.json + + - name: 📦 @uiw/codemirror-theme-okaidia publish to NPM uses: JS-DevTools/npm-publish@v1 with: @@ -279,6 +286,21 @@ jobs: NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} + - name: Modify @uiw/codemirror-themes-all => @uiwjs/codemirror-themes-all + uses: jaywcjlove/github-action-package@main + if: success() || failure() + with: + path: themes/all/package.json + data: | + { "name": "@uiwjs/codemirror-themes-all" } + + - run: npm publish + working-directory: themes/all + if: success() || failure() + env: + NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} + + - name: Modify @uiw/codemirror-theme-androidstudio => @uiwjs/codemirror-theme-androidstudio uses: jaywcjlove/github-action-package@main if: success() || failure()