Skip to content

Commit

Permalink
workflow: add checkout fetch-depth: 0
Browse files Browse the repository at this point in the history
  • Loading branch information
wuttinanhi committed Nov 15, 2024
1 parent 0fbb99d commit a6f5683
Showing 1 changed file with 22 additions and 19 deletions.
41 changes: 22 additions & 19 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,35 +10,38 @@ on:
workflow_dispatch:

jobs:
run-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
# run-test:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v4

- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 9
run_install: false
# - uses: pnpm/action-setup@v4
# name: Install pnpm
# with:
# version: 9
# run_install: false

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: "pnpm"
# - name: Install Node.js
# uses: actions/setup-node@v4
# with:
# node-version: 22
# cache: "pnpm"

- name: Install dependencies
run: pnpm install
# - name: Install dependencies
# run: pnpm install

- name: Run test
run: pnpm test
# - name: Run test
# run: pnpm test

publish-npm:
runs-on: ubuntu-latest
# needs: run-test
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: pnpm/action-setup@v4
name: Install pnpm
Expand Down

0 comments on commit a6f5683

Please sign in to comment.