Skip to content

Commit

Permalink
ci(github-workflows): improve Guthub workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
morewings committed Jun 27, 2024
1 parent 7c8ef2a commit 0190af1
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ jobs:
persist-credentials: false

- name: Read .nvmrc
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
run: echo "NVMRC=$(cat .nvmrc)" >> $GITHUB_ENV
id: nvm

- name: Use Node.js ${{ steps.nvm.outputs.NVMRC }}
- name: Use Node.js ${{ env.NVMRC }}
uses: actions/setup-node@v4
with:
node-version: ${{ steps.nvm.outputs.NVMRC }}
node-version: ${{ env.NVMRC }}

- name: Install pnpm
uses: pnpm/action-setup@v3
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/merge-jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ jobs:
persist-credentials: false

- name: Read .nvmrc
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
run: echo "NVMRC=$(cat .nvmrc)" >> $GITHUB_ENV
id: nvm

- name: Use Node.js ${{ steps.nvm.outputs.NVMRC }}
- name: Use Node.js ${{ env.NVMRC }}
uses: actions/setup-node@v4
with:
node-version: ${{ steps.nvm.outputs.NVMRC }}
node-version: ${{ env.NVMRC }}

- name: Install pnpm
uses: pnpm/action-setup@v3
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ jobs:
uses: actions/checkout@v4

- name: Read .nvmrc
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
run: echo "NVMRC=$(cat .nvmrc)" >> $GITHUB_ENV
id: nvm

- name: Use Node.js ${{ steps.nvm.outputs.NVMRC }}
- name: Use Node.js ${{ env.NVMRC }}
uses: actions/setup-node@v4
with:
node-version: ${{ steps.nvm.outputs.NVMRC }}
node-version: ${{ env.NVMRC }}

- name: Install pnpm
uses: pnpm/action-setup@v3
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pull-request-jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ jobs:
fetch-depth: 0

- name: Read .nvmrc
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
run: echo "NVMRC=$(cat .nvmrc)" >> $GITHUB_ENV
id: nvm

- name: Use Node.js ${{ steps.nvm.outputs.NVMRC }}
- name: Use Node.js ${{ env.NVMRC }}
uses: actions/setup-node@v4
with:
node-version: ${{ steps.nvm.outputs.NVMRC }}
node-version: ${{ env.NVMRC }}

- name: Install pnpm
uses: pnpm/action-setup@v3
Expand Down

0 comments on commit 0190af1

Please sign in to comment.