From 414b34341fdf62cdee7c58d673ee38e26ede5ab4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristopher=20Pinz=C3=B3n?= <18080804+pinzon@users.noreply.github.com> Date: Tue, 5 Nov 2024 15:41:32 -0500 Subject: [PATCH] add github action for release (#269) --- .github/workflows/release.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..975161c --- /dev/null +++ b/.github/workflows/release.yml @@ -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