File tree Expand file tree Collapse file tree 5 files changed +23
-8
lines changed Expand file tree Collapse file tree 5 files changed +23
-8
lines changed Original file line number Diff line number Diff line change @@ -6,9 +6,9 @@ name: publish
66on :
77 push :
88 branches :
9- - main
109 - alpha
1110 - beta
11+ - main
1212
1313jobs :
1414 build :
@@ -25,21 +25,21 @@ jobs:
2525 registry-url : " https://registry.npmjs.org"
2626
2727 - name : Get cache directory
28- id : npm -cache-dir
28+ id : yarn -cache-dir
2929 run : |
30- echo "::set-output name=dir::$(npm config get cache)"
30+ echo "::set-output name=dir::$(yarn cache dir )"
3131
3232 - name : Restoring cache
3333 uses : actions/cache@v2
34- id : npm -cache # use this to check for `cache-hit` ==> if: steps.npm -cache.outputs.cache-hit != 'true'
34+ id : yarn -cache # use this to check for `cache-hit` ==> if: steps.yarn -cache.outputs.cache-hit != 'true'
3535 with :
36- path : ${{ steps.npm -cache-dir.outputs.dir }}
36+ path : ${{ steps.yarn -cache-dir.outputs.dir }}
3737 key : ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
3838 restore-keys : |
3939 ${{ runner.os }}-yarn-
4040
4141 - name : Install Packages
42- run : yarn install --frozen-lockfile --cache-folder .npm -- prefer-offline
42+ run : yarn install --frozen-lockfile --prefer-offline
4343
4444 - name : Build
4545 run : yarn prepack
Original file line number Diff line number Diff line change 11---
22branches :
3+ - name : alpha
4+ - name : beta
35 - name : main
6+
47plugins :
58 - " @semantic-release/commit-analyzer"
69 - " @semantic-release/release-notes-generator"
Original file line number Diff line number Diff line change 1818 "version" : " >0.2"
1919 },
2020 "scripts" : {
21- "build" : " yarn prepublish " ,
21+ "build" : " yarn prepack " ,
2222 "generate-types" : " graphql-codegen --config codegen.yml" ,
2323 "prepare" : " npx husky install && shx rm -rf .git/hooks && shx ln -s ../.husky .git/hooks" ,
24- "prepublish " : " rm -rf dist" ,
24+ "prepack " : " rm -rf dist && tsc " ,
2525 "test" : " NODE_ENV=test jest" ,
2626 "lint" : " eslint --config .eslintrc.json --ext .js,.ts ./" ,
2727 "lint:fix" : " eslint --fix --config .eslintrc.json --ext .js,.ts ./" ,
Original file line number Diff line number Diff line change 1+ const message = 'Hello, World!' ;
2+ // eslint-disable-next-line no-console
3+ console . log ( message ) ;
Original file line number Diff line number Diff line change 1+ describe ( 'Stub test: ' , ( ) => {
2+ const result = true
3+
4+ describe ( 'Always Pass' , ( ) => {
5+ test ( 'should return a truthy value ' , ( ) => {
6+ expect ( result ) . toBeTruthy ( )
7+ } )
8+ } )
9+ } )
You can’t perform that action at this time.
0 commit comments