Skip to content

Commit 3e72287

Browse files
committed
feat: replace node manager
1 parent a2eff14 commit 3e72287

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

.github/workflows/ci.yaml

+15-13
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,17 @@ jobs:
2020
env:
2121
CURRENT_RUNNER: ${{ runner.name }}
2222

23-
- uses: actions/setup-node@v4
23+
- name: setup node
24+
uses: ./.github/actions/node-manager
2425
with:
2526
node-version: ${{ env.NVM_NODE_VERSION }}
2627

2728
- name: build-and-lint
2829
shell: bash
2930
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
3334
3435
dry-run-publish:
3536
needs: [ build-and-lint ]
@@ -42,16 +43,17 @@ jobs:
4243
CURRENT_RUNNER: ${{ runner.name }}
4344
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
4445

45-
- uses: actions/setup-node@v4
46+
- name: setup node
47+
uses: ./.github/actions/node-manager
4648
with:
4749
node-version: ${{ env.NVM_NODE_VERSION }}
4850

4951
- name: dry-run-publish
5052
shell: bash
5153
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
5557
5658
publish-npm:
5759
needs: [ dry-run-publish ]
@@ -67,14 +69,14 @@ jobs:
6769
CURRENT_RUNNER: ${{ runner.name }}
6870
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
6971

70-
# Setup .npmrc file to publish to npm
71-
- uses: actions/setup-node@v4
72+
- name: setup node
73+
uses: ./.github/actions/node-manager
7274
with:
7375
node-version: ${{ env.NVM_NODE_VERSION }}
7476

7577
- name: publish-npm
7678
shell: bash
7779
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

Comments
 (0)