Skip to content

Commit 11ec999

Browse files
committed
chore: update workflows config.
1 parent f1cd7eb commit 11ec999

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,35 @@ jobs:
8686
with:
8787
token: ${{ secrets.NPM_TOKEN }}
8888
package: ./package.json
89+
90+
outputs:
91+
successful: ${{steps.create_tag.outputs.successful }}
92+
93+
github-package:
94+
runs-on: ubuntu-18.04
95+
needs: build-deploy
96+
if: needs.build-deploy.outputs.successful
97+
steps:
98+
- uses: actions/checkout@v3
99+
- uses: actions/setup-node@v3
100+
with:
101+
node-version: 16
102+
registry-url: https://npm.pkg.github.com
103+
scope: '@uiwjs'
104+
105+
- run: npm install
106+
- run: npm run build
107+
108+
- name: "Modify @uiw/react-textarea-code-editor => @uiwjs/react-textarea-code-editor"
109+
uses: jaywcjlove/github-action-package@main
110+
if: success() || failure()
111+
with:
112+
path: ./package.json
113+
data: |
114+
{ "name": "@uiwjs/react-textarea-code-editor" }
115+
116+
- run: npm publish
117+
working-directory: core
118+
if: success() || failure()
119+
env:
120+
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)