File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 32
32
- name : install dependencies
33
33
run : pnpm install
34
34
- name : Setup npmrc
35
- run : echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
35
+ # cp .npmrc to $HOME, append authToken to .npmrc
36
+ # changeset will use the .npmrc in $HOME, and writing there instead of in the repo
37
+ # prevents pnpm from complaining about a dirty worktree
38
+ run : |
39
+ cp .npmrc $HOME
40
+ echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> $HOME/.npmrc
36
41
- name : create and publish versions
37
42
uses : changesets/action@v1
38
43
with :
44
49
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
45
50
NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
46
51
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
47
- HOME : ${{ github.workspace }}
Original file line number Diff line number Diff line change 35
35
"storybook" : " storybook dev -p 6006" ,
36
36
"build-storybook" : " storybook build" ,
37
37
"chromatic" : " npx chromatic --project-token=46df7a59e0a8" ,
38
- "ci:publish" : " pnpm publish -r " ,
38
+ "ci:publish" : " pnpm publish" ,
39
39
"ci:version" : " pnpm changeset version"
40
40
},
41
41
"peerDependencies" : {
You can’t perform that action at this time.
0 commit comments