Skip to content

Commit

Permalink
configure npm token
Browse files Browse the repository at this point in the history
  • Loading branch information
aabedraba committed Oct 27, 2024
1 parent 200c5ad commit 68e969e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@ jobs:
with:
node-version: "20"
cache: "npm"
registry-url: "https://registry.npmjs.org"
scope: "@ecronix"
- name: git config
run: |
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
echo //registry.npmjs.org/:_authToken=${NPM_TOKEN} > .npmrc
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Install dependencies
run: npm ci
- name: Run tests
Expand All @@ -32,9 +33,6 @@ jobs:
run: npx lerna run build:packages --since master
- name: Publish packages
run: npx lerna publish patch --yes
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_REGISTRY: https://registry.npmjs.org/

rmw-shell-demo:
if: ${{ always() }}
Expand Down

0 comments on commit 68e969e

Please sign in to comment.