Skip to content

Commit

Permalink
Merge pull request #14 from hashicorp/f-simplify-publish-action
Browse files Browse the repository at this point in the history
use node-version-file with actions/setup-node@v2
  • Loading branch information
dbanck committed Jan 10, 2022
2 parents 8ac15b9 + ce61528 commit 59c7109
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/publish.yml
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 59c7109

Please sign in to comment.