test ci workflow
This commit is contained in:
42
.github/workflows/ci.yml
vendored
42
.github/workflows/ci.yml
vendored
@@ -17,33 +17,33 @@ jobs:
|
|||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Get yarn cache directory path
|
# - name: Get yarn cache directory path
|
||||||
id: yarn_cache
|
# id: yarn_cache
|
||||||
run: echo "::set-output name=YARN_CACHE_DIR::$(yarn cache dir)"
|
# run: echo "::set-output name=YARN_CACHE_DIR::$(yarn cache dir)"
|
||||||
|
|
||||||
- name: Get cached packaged
|
# - name: Get cached packaged
|
||||||
uses: actions/cache@v2
|
# uses: actions/cache@v2
|
||||||
id: yarn-cache
|
# id: yarn-cache
|
||||||
with:
|
# with:
|
||||||
path: ${{ steps.yarn_cache.outputs.YARN_CACHE_DIR }}
|
# path: ${{ steps.yarn_cache.outputs.YARN_CACHE_DIR }}
|
||||||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
# key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
||||||
restore-keys: |
|
# restore-keys: |
|
||||||
${{ runner.os }}-yarn-
|
# ${{ runner.os }}-yarn-
|
||||||
|
|
||||||
- name: Install dependencies
|
# - name: Install dependencies
|
||||||
if: steps.yarn-cache.outputs.cache-hit != 'true'
|
# if: steps.yarn-cache.outputs.cache-hit != 'true'
|
||||||
run: yarn --pure-lockfile
|
# run: yarn --pure-lockfile
|
||||||
|
|
||||||
- name: Create new version
|
# - name: Create new version
|
||||||
id: new-version
|
# id: new-version
|
||||||
run: echo "::set-output name=NEW_VERSION::$(.github/workflows/version-up.sh --patch)"
|
# run: echo "::set-output name=NEW_VERSION::$(.github/workflows/version-up.sh --patch)"
|
||||||
|
|
||||||
- name: Create change log
|
# - name: Create change log
|
||||||
id: change-log
|
# id: change-log
|
||||||
run: echo "::set-output name=CHANGE_LOG::$(yarn generate:changelog)"
|
# run: echo "::set-output name=CHANGE_LOG::$(yarn generate:changelog)"
|
||||||
|
|
||||||
- name: Tag test
|
- name: Tag test
|
||||||
run: git tag --list
|
run: git tag --list 2>/dev/null | tail -n1 2>/dev/null
|
||||||
|
|
||||||
# - name: Create Release
|
# - name: Create Release
|
||||||
# id: create_release
|
# id: create_release
|
||||||
|
|||||||
Reference in New Issue
Block a user