Skip to content

change npmrc path in yml file #3

change npmrc path in yml file

change npmrc path in yml file #3

Workflow file for this run

name: Publish
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '20.x'
- run: npm install
- run: npm run build
- run: |
echo "@Peter-Lazarov:registry=https://npm.pkg.github.com" > ~/.npmrc
echo "//npm.pkg.github.com/:_authToken=$NPM_TOKEN" >> ~/.npmrc
- run: npm publish
working-directory: ./build
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}