Skip to content

2.0.0

2.0.0 #8

Workflow file for this run

name: CI
on:
push:
branches: ['main']
tags: ['v*']
pull_request:
branches: ['*']
workflow_dispatch:
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
permissions:
id-token: write
contents: read
jobs:
main:
name: CI Pipeline
runs-on: ubuntu-latest
steps:
- name: Setup timezone
uses: zcong1993/setup-timezone@master
with:
timezone: America/Sao_Paulo
- name: Setup repo
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22
registry-url: 'https://registry.npmjs.org'
cache: 'pnpm'
- name: Upgrade npm
run: npm install -g npm@11
- name: Install dependencies
run: pnpm install
- name: Validate
if: "!startsWith(github.ref, 'refs/tags/')"
run: pnpm run validate
timeout-minutes: 3
- name: SonarCloud Scan
if: "!startsWith(github.ref, 'refs/tags/')"
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- name: Publish Package
if: startsWith(github.ref, 'refs/tags/')
run: npm publish --provenance