Skip to content

Commit

Permalink
ci: fix checkout branch
Browse files Browse the repository at this point in the history
  • Loading branch information
danielfsousa committed Nov 19, 2022
1 parent 583bb2a commit d824f25
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Use Node.js 18.x
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: 18.x

- name: Cache npm
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
Expand All @@ -28,7 +28,7 @@ jobs:
- name: Run tests
run: npm run test:cov
env:
CI: "true"
CI: 'true'

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v3
8 changes: 6 additions & 2 deletions .github/workflows/docker-build-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
ref: ${{ github.ref }}

- name: Bump version and push tag
id: tag-version
Expand All @@ -43,7 +45,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
ref: ${{ github.ref }}

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

0 comments on commit d824f25

Please sign in to comment.