From a0b7c597ae1f3c060a6e292db9413c0c15c505e4 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 28 Oct 2022 15:37:10 +0200 Subject: [PATCH] Yarn cache --- .github/workflows/release.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b80688f..984b336 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,4 @@ -name: "build-test" +name: "Release" on: workflow_dispatch: inputs: @@ -14,15 +14,21 @@ jobs: - uses: actions/checkout@v3 with: ref: ${{ github.ref_name }} - - run: | - yarn - yarn build + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: '16' + cache: 'yarn' + - name: Install project dependencies + run: yarn --prefer-offline + - name: Build + run: yarn build - name: Commit & Push changes run: | git config user.name 'github-actions[bot]' git config user.email 'github-actions[bot]@users.noreply.github.com' git add dist/ - git commit -m "Release {{ github.release.tag_name }}" - git tag {{ github.event.inputs.tag }} + git commit -m "Release ${{ github.release.tag_name }}" + git tag ${{ github.event.inputs.tag }} git push \ No newline at end of file