hunk.code_window:           restore-keys: |
               ${{ runner.os }}-yarn-
               ${{ runner.os }}-
         - name: Install dependencies
           run: yarn --frozen-lockfile
  
hunk.labels: keep replace replace keep keep keep
hunk.after_edit:             ${{ runner.os }}-yarn-cache-
  
hunk.file_path: .github/workflows/release.yml
hunk.type: replace
file: name: release
  
  on:
    push:
      tags:
        - v*
  
  jobs:
    build:
      runs-on: ubuntu-latest
      steps:
        - uses: actions/checkout@v2
  
        - run: echo "::set-output name=version::$(cat .nvmrc)"
          id: nvmrc
  
        - name: Setup node
          uses: actions/setup-node@v1
          with:
            node-version: "${{ steps.nvmrc.outputs.version }}"
  
        - run: echo "::set-output name=dir::$(yarn cache dir)"
          id: yarn-cache
  
        - name: Restore dependency cache
          uses: actions/cache@v2
          with:
            path: "${{ steps.yarn-cache.outputs.dir }}"
            key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
            restore-keys: |
              ${{ runner.os }}-yarn-
              ${{ runner.os }}-
  
        - name: Install dependencies
          run: yarn --frozen-lockfile
  
        - name: Build
          run: yarn build
  
        - name: Test
          run: yarn test
  
        - name: Setup npm auth
          run: echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" > ~/.npmrc
  
        - name: Publish
          run: yarn run publish
  