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
6
6
on :
7
7
push :
8
8
branches :
9
- - main
10
9
- alpha
11
10
- beta
11
+ - main
12
12
13
13
jobs :
14
14
build :
@@ -25,21 +25,21 @@ jobs:
25
25
registry-url : " https://registry.npmjs.org"
26
26
27
27
- name : Get cache directory
28
- id : npm -cache-dir
28
+ id : yarn -cache-dir
29
29
run : |
30
- echo "::set-output name=dir::$(npm config get cache)"
30
+ echo "::set-output name=dir::$(yarn cache dir )"
31
31
32
32
- name : Restoring cache
33
33
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'
35
35
with :
36
- path : ${{ steps.npm -cache-dir.outputs.dir }}
36
+ path : ${{ steps.yarn -cache-dir.outputs.dir }}
37
37
key : ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
38
38
restore-keys : |
39
39
${{ runner.os }}-yarn-
40
40
41
41
- name : Install Packages
42
- run : yarn install --frozen-lockfile --cache-folder .npm -- prefer-offline
42
+ run : yarn install --frozen-lockfile --prefer-offline
43
43
44
44
- name : Build
45
45
run : yarn prepack
Original file line number Diff line number Diff line change 1
1
---
2
2
branches :
3
+ - name : alpha
4
+ - name : beta
3
5
- name : main
6
+
4
7
plugins :
5
8
- " @semantic-release/commit-analyzer"
6
9
- " @semantic-release/release-notes-generator"
Original file line number Diff line number Diff line change 18
18
"version" : " >0.2"
19
19
},
20
20
"scripts" : {
21
- "build" : " yarn prepublish " ,
21
+ "build" : " yarn prepack " ,
22
22
"generate-types" : " graphql-codegen --config codegen.yml" ,
23
23
"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 " ,
25
25
"test" : " NODE_ENV=test jest" ,
26
26
"lint" : " eslint --config .eslintrc.json --ext .js,.ts ./" ,
27
27
"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