Skip to content

Commit

Permalink
chore: update workflow config.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Nov 7, 2023
1 parent bff1838 commit 9a6eee3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,16 @@ on:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
env:
NODE_OPTIONS: --max_old_space_size=8192
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18
registry-url: 'https://registry.npmjs.org'

- run: npm install
Expand Down Expand Up @@ -59,14 +62,14 @@ jobs:
body: |
[![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-monacoeditor@${{steps.create_tag.outputs.versionNumber}}/file/README.md)
Documentation ${{ steps.changelog.outputs.tag }}: https://raw.githack.com/jaywcjlove/react-monacoeditor/${{ steps.changelog.outputs.gh-pages-short-hash }}/index.html
Documentation ${{ steps.changelog.outputs.tag }}: https://raw.githack.com/uiwjs/react-monacoeditor/${{ steps.changelog.outputs.gh-pages-short-hash }}/index.html
Comparing Changes: ${{ steps.changelog.outputs.compareurl }}
${{ steps.changelog.outputs.changelog }}
- run: git status

- run: npm publish --access public
- run: npm publish --access public --provenance
name: 📦 @uiw/react-monacoeditor publish to NPM
continue-on-error: true
working-directory: core
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull_requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18

- run: npm install
- run: npm run build
Expand Down

0 comments on commit 9a6eee3

Please sign in to comment.