Skip to content

Merge remote-tracking branch 'refs/remotes/origin/main' #6

Merge remote-tracking branch 'refs/remotes/origin/main'

Merge remote-tracking branch 'refs/remotes/origin/main' #6

Workflow file for this run

name: Publish to NPM
on:
push:
tags:
- 'v*' # Gatilho ao criar tags como v1.0.0, v2.0.1, etc.
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 22
registry-url: https://registry.npmjs.org/
- name: Install dependencies
run: npm install
- name: Build the project
run: npm run build
- name: Publish to NPM
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm publish --access public