Skip to content

Commit

Permalink
Set node-version-file for setup-node
Browse files Browse the repository at this point in the history
Signed-off-by: Sosuke Suzuki <[email protected]>
  • Loading branch information
sosukesuzuki committed Aug 27, 2023
1 parent 25948bf commit 5519e20
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14.15
node-version-file: ".nvmrc"
- run: yarn install
- run: yarn build-v2
4 changes: 2 additions & 2 deletions .github/workflows/build-v1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
pull_request:
branches:
- 'master'
- "master"

jobs:
build:
Expand All @@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14.15
node-version-file: ".nvmrc"
- run: yarn install
- run: yarn build
- run: yarn lint
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/npm-publish-v1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14.15
node-version-file: ".nvmrc"
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
2 changes: 1 addition & 1 deletion .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
ref: ${{ github.event.inputs.tag }}
- uses: actions/setup-node@v3
with:
node-version: 14.15
node-version-file: ".nvmrc"
- run: cd v2 && npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 comments on commit 5519e20

Please sign in to comment.