File tree 1 file changed +11
-5
lines changed
1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -12,26 +12,32 @@ jobs:
12
12
steps :
13
13
- uses : actions/checkout@v3
14
14
15
+ - name : Enable Corepack
16
+ run : corepack enable
17
+
15
18
- name : Setup node
16
19
uses : actions/setup-node@v3
17
20
with :
18
21
node-version : 18
19
- cache : ' npm'
22
+ cache : ' yarn'
23
+ cache-dependency-path : ' **/yarn.lock'
20
24
registry-url : ' https://registry.npmjs.org'
21
25
22
- - name : NPM Install
23
- run : npm ci
26
+ - name : Yarn Install
27
+ run : yarn install --immutable
24
28
25
29
- name : Publish (NPM)
26
- run : npm publish --access public
30
+ run : yarn npm publish --access public
27
31
env :
28
32
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
29
33
30
34
- uses : actions/setup-node@v3
31
35
with :
32
36
registry-url : ' https://npm.pkg.github.com'
37
+ cache : ' yarn'
38
+ cache-dependency-path : ' **/yarn.lock'
33
39
34
40
- name : Publish (GPR)
35
- run : npm publish
41
+ run : yarn npm publish
36
42
env :
37
43
NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments