From cda906aeeaec471009991a96350046e505175fdf Mon Sep 17 00:00:00 2001 From: Travis Shivers Date: Tue, 13 Oct 2020 18:42:50 -0500 Subject: [PATCH] ci(release): wait to checkout until previous release done Wait to run checkout until previous releases finish in order to have the latest tags in the checked out repo. This is important because semantic release determines the next version based on the tags in the current repo. --- .github/workflows/release.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 33aae699..0547cde5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -50,14 +50,19 @@ jobs: release-version-minor: ${{ steps.release.outputs.release-version-minor }} steps: - - name: Checkout - uses: actions/checkout@v2.3.3 - - name: Setup Node.js uses: actions/setup-node@v2.1.2 with: node-version: 14 + - name: Turnstyle + uses: softprops/turnstyle@v0.1.3 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Checkout + uses: actions/checkout@v2.3.3 + - name: Cache Node.js modules id: cache uses: actions/cache@v2.1.2 @@ -75,11 +80,6 @@ jobs: env: SKIP_BUILD: true - - name: Turnstyle - uses: softprops/turnstyle@v0.1.3 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Semantic release id: release uses: ahmadnassri/action-semantic-release@v1.2.6