Skip to content

Commit

Permalink
chore(ci): clean up github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ChiefORZ committed Jul 25, 2023
1 parent 0d9ae75 commit c1c9f1d
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,20 @@ jobs:
matrix:
node-version: [18.9.x]
steps:
- uses: pnpm/action-setup@v2
- name: Checkout repo
uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Install pnpm
uses: pnpm/action-setup@v2
id: pnpm-install
with:
version: ^8.6.0
run_install: false

- name: Get pnpm store directory
id: pnpm-cache
Expand All @@ -29,12 +40,6 @@ jobs:
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d-%H-%M')"

- uses: actions/checkout@v3

- name: git config
run: |
git config user.name "${GITHUB_ACTOR}"
Expand All @@ -45,11 +50,6 @@ jobs:
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: pnpm i --frozen-lockfile

Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,20 @@ jobs:
matrix:
node-version: [18.x]
steps:
- uses: pnpm/action-setup@v2
- name: Checkout repo
uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Install pnpm
uses: pnpm/action-setup@v2
id: pnpm-install
with:
version: ^8.6.0
run_install: false

- name: Get pnpm store directory
id: pnpm-cache
Expand All @@ -27,17 +38,6 @@ jobs:
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d-%H-%M')"

- uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: pnpm i --frozen-lockfile

Expand Down

0 comments on commit c1c9f1d

Please sign in to comment.