Skip to content

Commit

Permalink
use node-version-file with actions/setup-node@v2
Browse files Browse the repository at this point in the history
  • Loading branch information
dbanck committed Jan 10, 2022
1 parent 8ac15b9 commit ce61528
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: read node.js version
id: nodejs-version
run: |
content=`cat ./.nvmrc`
echo "::set-output name=content::$content"
- uses: actions/setup-node@v2
with:
# See https://github.com/actions/setup-node/issues/32
node-version: ${{ steps.nodejs-version.outputs.content }}
node-version-file: ".nvmrc"
- run: npm install
- uses: JS-DevTools/npm-publish@v1
with:
Expand Down

0 comments on commit ce61528

Please sign in to comment.