From b1d5af7bd361274a9f8e29a5ceb37f3a2249feba Mon Sep 17 00:00:00 2001 From: Eric Fennis Date: Mon, 5 Apr 2021 18:25:15 +0200 Subject: [PATCH] check output --- .github/workflows/ci.yml | 57 ++++++++++++++++++++-------------------- 1 file changed, 29 insertions(+), 28 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c8010eb11..d830d3a20 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,37 +17,38 @@ jobs: - name: Checkout code uses: actions/checkout@v2 - # - name: Get yarn cache directory path - # id: yarn_cache - # run: echo "::set-output name=YARN_CACHE_DIR::$(yarn cache dir)" - - # - name: Get cached packaged - # uses: actions/cache@v2 - # id: yarn-cache - # with: - # path: ${{ steps.yarn_cache.outputs.YARN_CACHE_DIR }} - # key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - # restore-keys: | - # ${{ runner.os }}-yarn- - - # - name: Install dependencies - # if: steps.yarn-cache.outputs.cache-hit != 'true' - # run: yarn --pure-lockfile - - # - name: Create new version - # id: new-version - # run: echo "::set-output name=NEW_VERSION::$(.github/workflows/version-up.sh --patch)" - - # - name: Create change log - # id: change-log - # run: echo "::set-output name=CHANGE_LOG::$(yarn generate:changelog)" - - name: Fetch tags run: git fetch --tags - - name: Tag test - run: git tag --list 2>/dev/null | tail -n1 2>/dev/null + - name: Get yarn cache directory path + id: yarn_cache + run: echo "::set-output name=YARN_CACHE_DIR::$(yarn cache dir)" + - name: Get cached packaged + uses: actions/cache@v2 + id: yarn-cache + with: + path: ${{ steps.yarn_cache.outputs.YARN_CACHE_DIR }} + key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} + restore-keys: | + ${{ runner.os }}-yarn- + + - name: Install dependencies + if: steps.yarn-cache.outputs.cache-hit != 'true' + run: yarn --pure-lockfile + + - name: Create new version + id: new-version + run: echo "::set-output name=NEW_VERSION::$(.github/workflows/version-up.sh --patch)" + + - name: Create change log + id: change-log + run: echo "::set-output name=CHANGE_LOG::$(yarn generate:changelog)" + + - name: Check output + run: | + echo ${{ steps.new-version.outputs.NEW_VERSION }} + echo ${{ steps.change-log.outputs.CHANGE_LOG }} # - name: Create Release # id: create_release # uses: actions/create-release@v1 @@ -55,6 +56,6 @@ jobs: # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token # with: # tag_name: ${{ steps.new-version.outputs.NEW_VERSION }} - # release_name: Release ${{ github.ref }} + # release_name: Release ${{ steps.new-version.outputs.NEW_VERSION }} # body: ${{ steps.change-log.outputs.CHANGE_LOG }}