Skip to content

Commit

Permalink
Move workflows to Yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasgloning committed Apr 27, 2024
1 parent d043670 commit 1582f5b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,16 @@ jobs:

steps:
- uses: actions/checkout@v4
- run: corepack enable
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- run: npm ci
- run: npm run build
- run: npm run lint
- run: npm run coverage
cache: "yarn"
- run: yarn install --immutable
- run: yarn run build
- run: yarn run lint
- run: yarn run coverage
- name: Publish code coverage to CodeClimate
uses: paambaati/codeclimate-action@v5.0.0
env:
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@ jobs:
steps:
- name: Check out repo
uses: actions/checkout@v4
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 16
cache: "npm"
- run: npm ci
cache: "yarn"
- run: yarn install --immutable
- name: Run prettier
run: |-
npm run format:check
yarn run format:check
7 changes: 4 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,15 @@ jobs:
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- run: corepack enable
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "lts/*"
- name: Install dependencies
run: npm ci
run: yarn install --immutable
- name: Build
run: npm run build
run: yarn run build
- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v5
Expand All @@ -41,4 +42,4 @@ jobs:
GIT_COMMITTER_EMAIL: ${{ steps.import_gpg.outputs.email }}
DOCKER_REGISTRY_USER: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKER_REGISTRY_PASSWORD: ${{ secrets.DOCKERHUB_TOKEN }}
run: npx semantic-release
run: yarn dlx semantic-release

0 comments on commit 1582f5b

Please sign in to comment.