Skip to content

Commit

Permalink
feat: npm publish
Browse files Browse the repository at this point in the history
  • Loading branch information
islemci authored Oct 1, 2024
1 parent 335512f commit 90c24f1
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Publish to npm
on:
push:
branches:
- main
tags:
- '*'
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org/'
- name: Install dependencies
run: npm install
- name: Publish to npm
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 90c24f1

Please sign in to comment.