File tree 2 files changed +32
-16
lines changed
2 files changed +32
-16
lines changed Original file line number Diff line number Diff line change @@ -11,20 +11,36 @@ jobs:
11
11
12
12
steps :
13
13
- name : Checkout source
14
-
14
+ uses : actions/checkout@v3
15
+
16
+ - name : Restore cache
17
+ uses : actions/cache@v3
18
+ with :
19
+ path : |
20
+ ~/.npm
21
+ key : |
22
+ ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
23
+ restore-keys : |
24
+ ${{ runner.OS }}-node-
25
+ ${{ runner.OS }}-
15
26
16
- - name : Install Node.js 14
17
- uses : actions/setup-node@v2.4.1
27
+ - name : Install Node.js 16
28
+ uses : actions/setup-node@v3
18
29
with :
19
- node-version : 14
30
+ node-version : 16
20
31
registry-url : https://npm.pkg.github.com/
21
32
scope : " @GitLiveApp"
22
33
23
- - run : echo "registry=https://npm.pkg.github.com/@GitLiveApp" >> .npmrc
34
+ - name : Install dependencies
35
+ run : npm install
36
+
37
+ - name : Build
38
+ run : npm run build
39
+
40
+ - name : Create .npmrc file
41
+ run : echo "registry=https://npm.pkg.github.com/@GitLiveApp" >> .npmrc
24
42
25
- - name : Publish
26
- run : |
27
- npm ci
28
- npm publish
43
+ - name : Publish to Github packages
44
+ run : npm publish
29
45
env :
30
- NODE_AUTH_TOKEN : ${{secrets.GITHUB_TOKEN}}
46
+ NODE_AUTH_TOKEN : ${{secrets.GITHUB_TOKEN}}
Original file line number Diff line number Diff line change @@ -11,10 +11,10 @@ jobs:
11
11
12
12
steps :
13
13
- name : Checkout source
14
- uses : actions/checkout@v2.4.0
14
+ uses : actions/checkout@v3
15
15
16
16
- name : Restore cache
17
- uses : actions/cache@v2.1.6
17
+ uses : actions/cache@v3
18
18
with :
19
19
path : |
20
20
~/.npm
@@ -24,16 +24,16 @@ jobs:
24
24
${{ runner.OS }}-node-
25
25
${{ runner.OS }}-
26
26
27
- - name : Install Node.js 14
28
- uses : actions/setup-node@v2.4.1
27
+ - name : Install Node.js 16
28
+ uses : actions/setup-node@v3
29
29
with :
30
- node-version : 14
30
+ node-version : 16
31
31
32
32
- name : Install dependencies
33
33
run : npm install
34
34
35
35
- name : Install Java 15
36
- uses : actions/setup-java@v2.1.0
36
+ uses : actions/setup-java@v3
37
37
with :
38
38
distribution : ' zulu'
39
39
java-version : ' 15'
You can’t perform that action at this time.
0 commit comments