diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 183ac7a..65687e0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,11 +19,11 @@ jobs: runs-on: ${{ matrix.os }} timeout-minutes: 15 steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v6 + - uses: actions/setup-node@v6 with: node-version-file: '.nvmrc' - - uses: actions/cache@v3 + - uses: actions/cache@v5 id: npm-cache with: path: '**/node_modules' @@ -39,7 +39,7 @@ jobs: PATH_PREFIX: auto - name: Upload artifact if: matrix.os == 'ubuntu-24.04' - uses: actions/upload-pages-artifact@v1 + uses: actions/upload-pages-artifact@v4 with: path: ./dist deploy: @@ -51,4 +51,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v1 + uses: actions/deploy-pages@v4 diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index bde9b01..af76d80 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -10,11 +10,11 @@ jobs: runs-on: ubuntu-24.04 timeout-minutes: 15 steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v6 + - uses: actions/setup-node@v6 with: node-version-file: '.nvmrc' - - uses: actions/cache@v3 + - uses: actions/cache@v5 id: npm-cache with: path: '**/node_modules' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ec707e7..4b7d365 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,12 +21,12 @@ jobs: echo "version is: ${{ env.RG_VERSION }}" - name: Create GitHub release id: release - uses: actions/create-release@v1 + uses: softprops/action-gh-release@v2 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: tag_name: ${{ env.RG_VERSION }} - release_name: ${{ env.RG_VERSION }} + name: ${{ env.RG_VERSION }} draft: true build-release: @@ -34,11 +34,11 @@ jobs: needs: ['create-release'] runs-on: ubuntu-24.04 steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v6 + - uses: actions/setup-node@v6 with: node-version-file: '.nvmrc' - - uses: actions/cache@v3 + - uses: actions/cache@v5 id: npm-cache with: path: '**/node_modules' diff --git a/package.json b/package.json index bb1581f..b731d36 100644 --- a/package.json +++ b/package.json @@ -4,9 +4,9 @@ "main": "index.js", "type": "module", "scripts": { - "test": "test-syntax-highlighting", "dev": "node ./node_modules/@lvce-editor/server/bin/server.js ./test/cases --only-extension=.", - "lint": "eslint . && prettier --check ." + "lint": "eslint . && prettier --check .", + "test": "test-syntax-highlighting" }, "author": "Lvce Editor", "license": "MIT",