Skip to content

Test Publish to NPM

Test Publish to NPM #3

Workflow file for this run

name: Test Publish to NPM
on:
workflow_dispatch:
jobs:
v4-21:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 21
registry-url: 'https://npm.pkg.github.com'
- name: Configure .npmrc
run: |
echo "@aparnajyothi-y:registry=https://npm.pkg.github.com" > ~/.npmrc
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GIT_TOKEN }}" >> ~/.npmrc
- name: Install dependencies
run: |
npm install
npm run build
- name: Publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GIT_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}