Skip to content

Commit

Permalink
chore(repo): update workflow checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
shellscape committed Sep 13, 2023
1 parent 68bd0df commit ee76a4e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/node-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@ jobs:

- name: Checkout Commit
uses: actions/checkout@v4
with:
fetch-depth: 2

- name: Checkout Master
run: git branch -f master origin/master
- name: Update Master
run: git pull --force --no-tags origin master:master

- name: Setup Node
uses: actions/setup-node@v3
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,20 @@ jobs:
steps:
- name: Checkout Commit
uses: actions/checkout@v4
with:
fetch-depth: 2

- name: Update Master
run: |
git pull --force --no-tags origin master:master
git checkout master
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 20
registry-url: https://registry.npmjs.org/

- name: Checkout Master
run: |
git branch -f master origin/master
git checkout master
- name: Enable Corepack
id: pnpm-setup
run: |
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,11 @@ jobs:
steps:
- name: Checkout Commit
uses: actions/checkout@v4
with:
fetch-depth: 2

- name: Checkout Master
run: git branch -f master origin/master
- name: Update Master
run: git pull --force --no-tags origin master:master

- name: Setup Node
uses: actions/setup-node@v3
Expand Down

0 comments on commit ee76a4e

Please sign in to comment.