Skip to content

Commit

Permalink
Create npm-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
prateek-chaubey authored Jul 13, 2024
1 parent d8b3b6b commit 4c4c5b3
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@

name: Publish on NPM

on:
push:
paths:
- 'scripts/package.json'
branches: [ main ]

jobs:
publish-npm:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./scripts
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 comments on commit 4c4c5b3

Please sign in to comment.