Skip to content

Commit

Permalink
Merge pull request #58 from SuperITMan/bugfix/ci-add-missing-npm-toke…
Browse files Browse the repository at this point in the history
…n-in-release

ci(release): add missing npm token in ".npmrc" file in the release job
  • Loading branch information
mhenkens authored Sep 23, 2024
2 parents d6cb70a + c5491a4 commit 9b1a695
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,6 @@ jobs:
echo "Main ENV : ${{ env.IS_MAIN_ENVIRONMENT }}"
NODE_VERSION="$(node -v)"
echo "Node version: $NODE_VERSION"
# This ensures that we are authenticated without requiring to have an actual .npmrc file within the project
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> ~/.npmrc
- name: Install dependencies
run: |
Expand Down Expand Up @@ -150,6 +148,10 @@ jobs:
mkdir -p $LOGS_DIR
touch $LOGS_FILE
# This ensures that we are authenticated without requiring to have an actual .npmrc file within the project
- name: Set npm token
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> ~/.npmrc

- name: Release
run: npm run release:publish

Expand Down

0 comments on commit 9b1a695

Please sign in to comment.