Skip to content

Commit 1d36ca1

Browse files
authored
add path filter (#513)
* add path filter * test changeset
1 parent e2661b7 commit 1d36ca1

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed

.changeset/sixty-colts-scream.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@segment/analytics-next': patch
3+
---
4+
5+
test

.github/workflows/release.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Release
22

33
on:
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 }}

0 commit comments

Comments
 (0)