From 6de8d31859e4c2522890d804a6d907781d0a4b7b Mon Sep 17 00:00:00 2001 From: Noah Date: Wed, 2 Nov 2022 16:06:32 -0400 Subject: [PATCH] refactor: address 2022-10-11 set output change (#156) NOTE: See https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ --- .github/actions/setup-env/action.yml | 4 ++-- .husky/pre-commit | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/actions/setup-env/action.yml b/.github/actions/setup-env/action.yml index b959c54f..a4b66aec 100644 --- a/.github/actions/setup-env/action.yml +++ b/.github/actions/setup-env/action.yml @@ -20,9 +20,9 @@ runs: id: detect-node run: | if [[ -z "${{ inputs.node-version }}" ]]; then - echo "::set-output name=version::$(cat .nvmrc | tr -d '\n')" + echo "version=$(cat .nvmrc | tr -d '\n')" >> $GITHUB_OUTPUT else - echo "::set-output name=version::${{ inputs.node-version }}" + echo "version=${{ inputs.node-version }}" >> $GITHUB_OUTPUT fi shell: bash - name: Install NodeJS diff --git a/.husky/pre-commit b/.husky/pre-commit index 8c6e5915..5a182ef1 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1,4 @@ #!/usr/bin/env sh . "$(dirname -- "$0")/_/husky.sh" -yarn node lint-staged +yarn lint-staged