Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mantou132 committed Sep 9, 2024
1 parent 371e2f5 commit 7c65cc4
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 13 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/duoyun-ui-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/gem-analyzer-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/gem-book-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/gem-devtools-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/gem-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,25 @@ name: Publish Gem
on:
push:
tags:
- '@mantou/gem@*'
- "@mantou/gem@*"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

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
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7c65cc4

Please sign in to comment.