Skip to content

Commit

Permalink
ci: set fetch-depth to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
wdavidw committed Oct 17, 2023
1 parent 19ce849 commit b61bc73
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/publish.yml
@@ -1,7 +1,4 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Publish
name: Test and Publish
on:
push:
branches: [ master ]
Expand All @@ -15,6 +12,8 @@ jobs:
node-version: [16.x, 18.x, 20.x]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
Expand All @@ -23,7 +22,7 @@ jobs:
- run: yarn run test
publish:
needs: [test]
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
if: startsWith(github.event.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/pull-request.yml
@@ -1,6 +1,3 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Test
on: pull_request
jobs:
Expand All @@ -11,6 +8,8 @@ jobs:
node-version: [16.x, 18.x, 20.x]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
Expand Down

0 comments on commit b61bc73

Please sign in to comment.