Publish #135
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 | |
on: | |
workflow_dispatch: | |
jobs: | |
publish: | |
name: Publish | |
runs-on: ubuntu-latest | |
environment: release | |
steps: | |
- uses: actions/checkout@main | |
with: | |
fetch-depth: 0 | |
persist-credentials: true # needed for git push | |
- uses: ./.github/actions/setup-deps | |
- run: pnpm build:packages | |
- name: git config | |
run: | | |
git config --global user.name 'Thinkmill Release Bot' | |
git config --global user.email '[email protected]' | |
- name: npm publish, git tag | |
run: pnpm changeset publish | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- run: git push origin --follow-tags |