Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish | |
# Rules that triggers the workflows | |
on: | |
release: | |
types: | |
- created | |
permissions: | |
contents: read | |
packages: write | |
id-token: write # needed for provenance data generation | |
jobs: | |
publish: | |
name: Publish | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: ./.github/actions/setup | |
- name: Build | |
run: pnpm primitives:build | |
- name: Build Schematics | |
run: pnpm primitives:build:schematics | |
- name: Build shadcn | |
run: pnpm shadcn:build | |
- name: Publish package 📦 | |
run: npx nx release publish | |
shell: bash | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
NPM_CONFIG_PROVENANCE: true |