Skip to content

Commit

Permalink
chore: github action
Browse files Browse the repository at this point in the history
  • Loading branch information
Aman-zishan committed Dec 27, 2023
1 parent 70f7c50 commit 056e801
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: "publish package to npm"

on:
push:
branches:
- main
- 'releases/**'

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: node
uses: actions/setup-node@v2
with:
node-version: 16
registry-url: https://registry.npmjs.org
- name: publish
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}

0 comments on commit 056e801

Please sign in to comment.