Skip to content

Merge pull request #6 from laisfrigerio/hotfix/v0.1.6 #8

Merge pull request #6 from laisfrigerio/hotfix/v0.1.6

Merge pull request #6 from laisfrigerio/hotfix/v0.1.6 #8

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