Skip to content

Commit 84afd41

Browse files
committed
Add Node.js setup, configure git for HTTP authentication, authenticate with private NPM package, and install dependencies
1 parent ab2f290 commit 84afd41

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/release_macOS.yml

+17
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,23 @@ jobs:
115115
- name: Checkout code
116116
uses: actions/checkout@v3
117117

118+
- name: Set up Node.js
119+
uses: actions/setup-node@v3
120+
with:
121+
node-version: '18'
122+
cache: 'yarn'
123+
124+
- name: Reconfigure git to use HTTP authentication
125+
run: >
126+
git config --global url."https://github.com/".insteadOf
127+
ssh://git@github.com/
128+
129+
- name: Authenticate with private NPM package
130+
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
131+
132+
- name: Install dependencies
133+
run: yarn setup
134+
118135
- name: Download artifacts from release-x64 and release-arm64 jobs
119136
uses: actions/download-artifact@v2
120137
with:

0 commit comments

Comments
 (0)