diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0b382769..2862ca33 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,19 +27,8 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v3 with: - node-version: 12 - - - name: Get yarn cache directory path - id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(yarn cache dir)" - - - name: Set up cache - uses: actions/cache@v3 - with: - path: ${{ steps.yarn-cache-dir-path.outputs.dir }} - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ runner.os }}-yarn- + node-version-file: ".nvmrc" + cache: "yarn" - name: Install dependencies run: yarn install diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 1af5bccc..c0236808 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -27,19 +27,8 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v3 with: - node-version: 12 - - - name: Get yarn cache directory path - id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(yarn cache dir)" - - - name: Set up cache - uses: actions/cache@v3 - with: - path: ${{ steps.yarn-cache-dir-path.outputs.dir }} - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ runner.os }}-yarn- + node-version-file: ".nvmrc" + cache: "yarn" - name: Install dependencies run: yarn install diff --git a/.github/workflows/test-action.yml b/.github/workflows/test-action.yml index d32be6bc..6ce4937c 100644 --- a/.github/workflows/test-action.yml +++ b/.github/workflows/test-action.yml @@ -39,7 +39,8 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v3 with: - node-version: 12 + node-version-file: ".nvmrc" + cache: "yarn" - name: Install dependencies run: yarn install diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e95e025f..3348a185 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -48,7 +48,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v3 with: - node-version: 12 + node-version-file: ".nvmrc" - name: Get yarn cache directory path id: yarn-cache-dir-path diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 00000000..b6a7d89c --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +16 diff --git a/action.yml b/action.yml index add103f8..b9fc21de 100644 --- a/action.yml +++ b/action.yml @@ -513,7 +513,7 @@ inputs: default: "true" runs: - using: node12 + using: node16 main: ./dist/index.js branding: