diff --git a/.github/workflows/duoyun-ui-publish.yml b/.github/workflows/duoyun-ui-publish.yml index e1ad3d40..79d3dc24 100644 --- a/.github/workflows/duoyun-ui-publish.yml +++ b/.github/workflows/duoyun-ui-publish.yml @@ -11,12 +11,17 @@ jobs: duoyun-ui-publish: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 + + - name: Setup pnpm + uses: pnpm/action-setup@v3 # docs https://pnpm.io/continuous-integration#github-actions + with: + version: 9 # Optional: specify a pnpm version - name: Setup Node.js uses: actions/setup-node@v1 with: - node-version: 18.x + node-version: 22.x - run: pnpm install diff --git a/.github/workflows/gem-analyzer-publish.yml b/.github/workflows/gem-analyzer-publish.yml index 5cc0ccde..91be44b8 100644 --- a/.github/workflows/gem-analyzer-publish.yml +++ b/.github/workflows/gem-analyzer-publish.yml @@ -11,12 +11,17 @@ jobs: gem-analyzer-publish: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 + + - name: Setup pnpm + uses: pnpm/action-setup@v3 # docs https://pnpm.io/continuous-integration#github-actions + with: + version: 9 # Optional: specify a pnpm version - name: Setup Node.js uses: actions/setup-node@v1 with: - node-version: 18.x + node-version: 22.x - run: pnpm install diff --git a/.github/workflows/gem-book-publish.yml b/.github/workflows/gem-book-publish.yml index 8f9564b4..4d37c3b4 100644 --- a/.github/workflows/gem-book-publish.yml +++ b/.github/workflows/gem-book-publish.yml @@ -11,12 +11,17 @@ jobs: gem-book-publish: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 + + - name: Setup pnpm + uses: pnpm/action-setup@v3 # docs https://pnpm.io/continuous-integration#github-actions + with: + version: 9 # Optional: specify a pnpm version - name: Setup Node.js uses: actions/setup-node@v1 with: - node-version: 18.x + node-version: 22.x - run: pnpm install diff --git a/.github/workflows/gem-devtools-publish.yml b/.github/workflows/gem-devtools-publish.yml index c3e51ce4..c067b9d5 100644 --- a/.github/workflows/gem-devtools-publish.yml +++ b/.github/workflows/gem-devtools-publish.yml @@ -11,12 +11,17 @@ jobs: gem-devtools-publish: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 + + - name: Setup pnpm + uses: pnpm/action-setup@v3 # docs https://pnpm.io/continuous-integration#github-actions + with: + version: 9 # Optional: specify a pnpm version - name: Setup Node.js uses: actions/setup-node@v1 with: - node-version: 18.x + node-version: 22.x - run: pnpm install diff --git a/.github/workflows/gem-publish.yml b/.github/workflows/gem-publish.yml index 73deabc2..986daea0 100644 --- a/.github/workflows/gem-publish.yml +++ b/.github/workflows/gem-publish.yml @@ -3,7 +3,7 @@ name: Publish Gem on: push: tags: - - '@mantou/gem@*' + - "@mantou/gem@*" # Allows you to run this workflow manually from the Actions tab workflow_dispatch: @@ -11,12 +11,17 @@ jobs: gem-publish: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 + + - name: Setup pnpm + uses: pnpm/action-setup@v3 # docs https://pnpm.io/continuous-integration#github-actions + with: + version: 9 # Optional: specify a pnpm version - name: Setup Node.js uses: actions/setup-node@v1 with: - node-version: 18.x + node-version: 22.x - run: node -e "fs.writeFileSync('./packages/gem/src/lib/version.ts', 'export const version = \'' + require('./packages/gem/package.json').version + '\';\n')" - run: pnpm install diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index fd3d9c44..7a5e52af 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -9,12 +9,17 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 + + - name: Setup pnpm + uses: pnpm/action-setup@v3 # docs https://pnpm.io/continuous-integration#github-actions + with: + version: 9 # Optional: specify a pnpm version - name: Setup Node.js uses: actions/setup-node@v1 with: - node-version: 18.x + node-version: 22.x - run: pnpm install - run: pnpm lint