Skip to content

Commit

Permalink
chore: update workflows config.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jun 11, 2023
1 parent 858c229 commit a120def
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,31 +90,31 @@ jobs:
outputs:
successful: ${{steps.create_tag.outputs.successful }}

github-package:
runs-on: ubuntu-latest
needs: build-deploy
if: needs.build-deploy.outputs.successful
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://npm.pkg.github.com
scope: '@uiwjs'

- run: npm install
- run: npm run build

- name: "Modify @uiw/react-textarea-code-editor => @uiwjs/react-textarea-code-editor"
uses: jaywcjlove/github-action-package@main
if: success() || failure()
with:
path: ./package.json
data: |
{ "name": "@uiwjs/react-textarea-code-editor" }
- name: 📦 @uiwjs/react-textarea-code-editor publish to NPM
run: npm publish
continue-on-error: true
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
# github-package:
# runs-on: ubuntu-latest
# needs: build-deploy
# if: needs.build-deploy.outputs.successful
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-node@v3
# with:
# node-version: 16
# registry-url: https://npm.pkg.github.com
# scope: '@uiwjs'

# - run: npm install
# - run: npm run build

# - name: "Modify @uiw/react-textarea-code-editor => @uiwjs/react-textarea-code-editor"
# uses: jaywcjlove/github-action-package@main
# if: success() || failure()
# with:
# path: ./package.json
# data: |
# { "name": "@uiwjs/react-textarea-code-editor" }

# - name: 📦 @uiwjs/react-textarea-code-editor publish to NPM
# run: npm publish
# continue-on-error: true
# env:
# NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit a120def

Please sign in to comment.