Skip to content

fix(CI/CD): packages workflow #8

fix(CI/CD): packages workflow

fix(CI/CD): packages workflow #8

Workflow file for this run

name: Release
env:
HUSKY: 0
permissions:
contents: write
id-token: write
on:
push:
branches:
- main
paths:
- 'packages/libs/core/**'
- 'packages/libs/jotai/**'
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/build
- name: Run tests
run: pnpm --filter "@constellar/core" run test:unit
- name: Publish
run: pnpm --filter "@constellar/core" publish --no-git-checks
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
NPM_CONFIG_PROVENANCE: true
- name: Run tests
run: pnpm --filter "@constellar/jotai" run test:unit
- name: Publish
run: pnpm --filter "@constellar/jotai" publish --no-git-checks
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
NPM_CONFIG_PROVENANCE: true