@@ -20,16 +20,17 @@ jobs:
20
20
env :
21
21
CURRENT_RUNNER : ${{ runner.name }}
22
22
23
- - uses : actions/setup-node@v4
23
+ - name : setup node
24
+ uses : ./.github/actions/node-manager
24
25
with :
25
26
node-version : ${{ env.NVM_NODE_VERSION }}
26
27
27
28
- name : build-and-lint
28
29
shell : bash
29
30
run : |
30
- ./bin/node-version-manager.sh yarn install --production=false --frozen-lockfile
31
- ./bin/node-version-manager.sh yarn build
32
- ./bin/node-version-manager.sh yarn lint
31
+ yarn install --production=false --frozen-lockfile
32
+ yarn build
33
+ yarn lint
33
34
34
35
dry-run-publish :
35
36
needs : [ build-and-lint ]
@@ -42,16 +43,17 @@ jobs:
42
43
CURRENT_RUNNER : ${{ runner.name }}
43
44
NODE_AUTH_TOKEN : ${{ secrets.NPM_AUTH_TOKEN }}
44
45
45
- - uses : actions/setup-node@v4
46
+ - name : setup node
47
+ uses : ./.github/actions/node-manager
46
48
with :
47
49
node-version : ${{ env.NVM_NODE_VERSION }}
48
50
49
51
- name : dry-run-publish
50
52
shell : bash
51
53
run : |
52
- ./bin/node-version-manager.sh yarn install --production=false --frozen-lockfile
53
- ./bin/node-version-manager.sh yarn build
54
- ./bin/node-version-manager.sh npm publish --access public --tag latest --dry-run
54
+ yarn install --production=false --frozen-lockfile
55
+ yarn build
56
+ npm publish --access public --tag latest --dry-run
55
57
56
58
publish-npm :
57
59
needs : [ dry-run-publish ]
@@ -67,14 +69,14 @@ jobs:
67
69
CURRENT_RUNNER : ${{ runner.name }}
68
70
NODE_AUTH_TOKEN : ${{ secrets.NPM_AUTH_TOKEN }}
69
71
70
- # Setup .npmrc file to publish to npm
71
- - uses : actions/setup- node@v4
72
+ - name : setup node
73
+ uses : ./.github/ actions/node-manager
72
74
with :
73
75
node-version : ${{ env.NVM_NODE_VERSION }}
74
76
75
77
- name : publish-npm
76
78
shell : bash
77
79
run : |
78
- ./bin/node-version-manager.sh yarn install --production=false --frozen-lockfile
79
- ./bin/node-version-manager.sh yarn build
80
- ./bin/node-version-manager.sh npm publish --access public --tag latest
80
+ yarn install --production=false --frozen-lockfile
81
+ yarn build
82
+ npm publish --access public --tag latest
0 commit comments