From 9a6eee3e2e39cdedbc53d551a65af226747778f8 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Tue, 7 Nov 2023 11:45:20 +0800 Subject: [PATCH] chore: update workflow config. --- .github/workflows/ci.yml | 9 ++++++--- .github/workflows/pull_requests.yml | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1f116d0b..059969e8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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 diff --git a/.github/workflows/pull_requests.yml b/.github/workflows/pull_requests.yml index 18843caf..ccaf2d4d 100644 --- a/.github/workflows/pull_requests.yml +++ b/.github/workflows/pull_requests.yml @@ -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