From 6a141b63aca6ed9d58b7b75e0345dbee95833a55 Mon Sep 17 00:00:00 2001 From: Ricardo Augusto Kowalski Date: Tue, 12 Mar 2024 13:47:45 -0300 Subject: [PATCH] Fix release workflow --- .github/workflows/release.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e69de29..0e86912 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -0,0 +1,35 @@ +name: Release + +on: + push: + branches: + - main + +concurrency: ${{ github.workflow }}-${{ github.ref }} + +jobs: + release: + name: Release + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: 'npm' + cache-dependency-path: '**/package-lock.json' + - run: npm ci + + + - name: Publish to NPM + id: changesets + uses: changesets/action@v1 + with: + publish: npm run release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + TURBO_TOKEN: Ji8cnHwcujA3Kyo7Spv3N6sj + TURBO_TEAM: rcrdk