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 Jul 5, 2023
1 parent e4f5a62 commit bacd805
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,28 +92,28 @@ jobs:
outputs:
successful: ${{steps.create_tag.outputs.successful }}

github-package:
runs-on: ubuntu-latest
needs: build
if: needs.build.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 package name
working-directory: core
shell: bash
run: |
node -e 'var pkg = require("./package.json"); pkg.name="@uiwjs/react-code-preview-layout"; require("fs").writeFileSync("./package.json", JSON.stringify(pkg, null, 2))'
- run: npm publish
working-directory: core
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
# github-package:
# runs-on: ubuntu-latest
# needs: build
# if: needs.build.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 package name
# working-directory: core
# shell: bash
# run: |
# node -e 'var pkg = require("./package.json"); pkg.name="@uiwjs/react-code-preview-layout"; require("fs").writeFileSync("./package.json", JSON.stringify(pkg, null, 2))'

# - run: npm publish
# working-directory: core
# env:
# NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit bacd805

Please sign in to comment.