From 709fabbbd0f93766f6d25b81db3e31fe4158e6dd Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Wed, 7 Dec 2022 14:29:57 +0800 Subject: [PATCH] chore: update workflows config. --- .github/workflows/ci.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 80332a412..98c0d66bd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -226,6 +226,12 @@ jobs: token: ${{ secrets.NPM_TOKEN }} package: ./themes/tokyo-night-storm/package.json + - name: 📦 @uiw/codemirror-theme-tokyo-night-day publish to NPM + uses: JS-DevTools/npm-publish@v1 + with: + token: ${{ secrets.NPM_TOKEN }} + package: ./themes/tokyo-night-day/package.json + - name: 📦 @uiw/codemirror-theme-vscode publish to NPM uses: JS-DevTools/npm-publish@v1 with: @@ -589,6 +595,18 @@ jobs: env: NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} + - name: Modify @uiw/codemirror-theme-tokyo-night-day => @uiwjs/codemirror-theme-tokyo-night-day + uses: jaywcjlove/github-action-package@main + with: + path: themes/tokyo-night-day/package.json + rename: "@uiwjs/codemirror-theme-tokyo-night-day" + + - run: npm publish + working-directory: themes/tokyo-night-day + continue-on-error: true + env: + NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} + - name: Modify @uiw/codemirror-theme-vscode => @uiwjs/codemirror-theme-vscode uses: jaywcjlove/github-action-package@main with: