Skip to content

Commit

Permalink
add github action for release (#269)
Browse files Browse the repository at this point in the history
  • Loading branch information
pinzon authored Nov 5, 2024
1 parent 90a9483 commit 414b343
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Release NPM Package

on:
push:
branches:
- main # Change this to your default branch

jobs:
release:
runs-on: ubuntu-latest

steps:
- name: Check out the code
uses: actions/checkout@v3

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: "https://registry.npmjs.org"

- name: Install dependencies
run: npm install

- name: Publish to npm
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_SECRET }}
run: npm publish

0 comments on commit 414b343

Please sign in to comment.