File tree Expand file tree Collapse file tree 2 files changed +21
-3
lines changed
Expand file tree Collapse file tree 2 files changed +21
-3
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @segment/analytics-next ' : patch
3+ ---
4+
5+ test
Original file line number Diff line number Diff line change @@ -2,6 +2,9 @@ name: Release
22
33on :
44 push :
5+ paths :
6+ - " .changeset/**"
7+ - " packages/**"
58 branches :
69 - master
710
@@ -21,15 +24,25 @@ jobs:
2124 node-version : 12.x
2225 cache : " yarn"
2326
27+ - name : Get Yarn cache path
28+ id : yarn-cache
29+ run : echo "::set-output name=dir::$(yarn cache dir)"
30+
31+ - name : Load Yarn cache
32+ uses : actions/cache@v3
33+ with :
34+ path : ${{ steps.yarn-cache.outputs.dir }}
35+ key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
36+ restore-keys : |
37+ ${{ runner.os }}-yarn-
38+
2439 - name : Install Dependencies
2540 run : HUSKY=0 yarn install --immutable
2641
27- - name : Create Release Pull Request or Publish to npm
42+ - name : Create Release Pull Request
2843 id : changesets
2944 uses : changesets/action@v1
3045 with :
3146 version : yarn update-versions-and-changelogs
32- publish : yarn release
3347 env :
3448 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
35- NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments