fix documentation #7
This file contains hidden or 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 | |
on: | |
push: | |
paths: | |
- '.changeset/**' | |
- 'packages/**' | |
- '.npmrc' | |
- 'package.json' | |
- 'pnpm-lock.yaml' | |
- 'pnpm-workspace.yaml' | |
branches: | |
- main | |
concurrency: ${{ github.workflow }}-${{ github.ref }} | |
jobs: | |
release: | |
# Don't run on forks by default. | |
# Don't run on the first run after creating from template. (run_number == 1). | |
if: | | |
github.repository == 'jvgomg/panda-css-presets' && | |
github.run_number != 1 | |
name: Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install | |
uses: ./.github/composite-actions/install | |
- name: Build packages | |
run: pnpm build | |
- name: Publish packages | |
id: changesets | |
uses: changesets/action@v1 | |
with: | |
publish: pnpm release | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | |
GITHUB_TOKEN: ${{secrets.GH_PAT}} | |
- name: Release to dev tag | |
if: steps.changesets.outputs.published != 'true' | |
run: | | |
git checkout main | |
pnpm release:dev:version | |
pnpm release:dev:publish | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | |
GITHUB_TOKEN: ${{secrets.GH_PAT}} |