Publish #37
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: | |
persist-credentials: true # needed for git push | |
- uses: ./.github/actions/ci-setup | |
- run: pnpm build | |
- name: git config | |
run: | | |
git config --global user.name 'Keystonejs Release Bot' | |
git config --global user.email '[email protected]' | |
- name: npm publish, git tag | |
run: pnpm changeset publish --tag latest | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- run: git push origin --follow-tags |