Skip to content

change checkout version and path for npmrc #4

change checkout version and path for npmrc

change checkout version and path for npmrc #4

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@v4
- 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" > build/.npmrc
echo "//npm.pkg.github.com/:_authToken=$NPM_TOKEN" >> build/.npmrc
- run: npm publish
working-directory: ./build
env:
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}