Skip to content

Commit

Permalink
ci: Use fetch-depth option to actions/checkout (#4048)
Browse files Browse the repository at this point in the history
This option will get us a full history upfront, so there is no need
for git fetch.
  • Loading branch information
joeyparrish authored Mar 21, 2022
1 parent 539b5af commit 5e2c700
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/release-please.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,16 +74,20 @@ jobs:
if: needs.release.outputs.release_created
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
persist-credentials: false

- uses: actions/setup-node@v1
with:
node-version: 16
registry-url: 'https://registry.npmjs.org'
# Without this, git describe won't work in the npm prepublish steps
- run: git fetch --unshallow

- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

- run: npm pack
- uses: svenstaro/upload-release-action@483c1e56f95e88835747b1c7c60581215016cbf2
with:
Expand Down

0 comments on commit 5e2c700

Please sign in to comment.