Skip to content

Commit 9b1a695

Browse files
authored
Merge pull request #58 from SuperITMan/bugfix/ci-add-missing-npm-token-in-release
ci(release): add missing npm token in ".npmrc" file in the release job
2 parents d6cb70a + c5491a4 commit 9b1a695

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,6 @@ jobs:
8686
echo "Main ENV : ${{ env.IS_MAIN_ENVIRONMENT }}"
8787
NODE_VERSION="$(node -v)"
8888
echo "Node version: $NODE_VERSION"
89-
# This ensures that we are authenticated without requiring to have an actual .npmrc file within the project
90-
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> ~/.npmrc
9189
9290
- name: Install dependencies
9391
run: |
@@ -150,6 +148,10 @@ jobs:
150148
mkdir -p $LOGS_DIR
151149
touch $LOGS_FILE
152150
151+
# This ensures that we are authenticated without requiring to have an actual .npmrc file within the project
152+
- name: Set npm token
153+
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> ~/.npmrc
154+
153155
- name: Release
154156
run: npm run release:publish
155157

0 commit comments

Comments
 (0)