Skip to content

Commit d824f25

Browse files
committed
ci: fix checkout branch
1 parent 583bb2a commit d824f25

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

.github/workflows/ci.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ jobs:
55
runs-on: ubuntu-latest
66
steps:
77
- name: Checkout
8-
uses: actions/checkout@v2
8+
uses: actions/checkout@v3
99

1010
- name: Use Node.js 18.x
11-
uses: actions/setup-node@v2
11+
uses: actions/setup-node@v3
1212
with:
1313
node-version: 18.x
1414

1515
- name: Cache npm
16-
uses: actions/cache@v2
16+
uses: actions/cache@v3
1717
with:
1818
path: ~/.npm
1919
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
@@ -28,7 +28,7 @@ jobs:
2828
- name: Run tests
2929
run: npm run test:cov
3030
env:
31-
CI: "true"
31+
CI: 'true'
3232

3333
- name: Upload coverage to Codecov
34-
uses: codecov/codecov-action@v2
34+
uses: codecov/codecov-action@v3

.github/workflows/docker-build-push.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- name: Checkout
20-
uses: actions/checkout@v2
20+
uses: actions/checkout@v3
21+
with:
22+
ref: ${{ github.ref }}
2123

2224
- name: Bump version and push tag
2325
id: tag-version
@@ -43,7 +45,9 @@ jobs:
4345
runs-on: ubuntu-latest
4446
steps:
4547
- name: Checkout
46-
uses: actions/checkout@v2
48+
uses: actions/checkout@v3
49+
with:
50+
ref: ${{ github.ref }}
4751

4852
- name: Update package.json version
4953
run: echo "`jq '.version="${{ env.TAG }}"' package.json`" > package.json

0 commit comments

Comments
 (0)