Skip to content

Commit

Permalink
Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dcousens committed Apr 9, 2024
1 parent 0f7760f commit 02ceed8
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:

jobs:
publish:
name: Publish
runs-on: ubuntu-latest
environment: Release
steps:
Expand All @@ -15,16 +14,23 @@ jobs:

- uses: ./.github/actions/ci-setup

- run: pnpm build
- name: version packages
run: pnpm changeset version
env:
GITHUB_TOKEN: ${{ secrets.KEYSTONE_RELEASE_BOT_GITHUB_TOKEN }}

- name: git config
- name: git commit
run: |
git config --global user.name 'Keystonejs Release Bot'
git config --global user.email '[email protected]'
git commit -a -m 'bump packages'
- run: pnpm build

- name: npm publish, git tag
run: pnpm changeset publish --tag latest
run: pnpm changeset publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- run: git push origin --follow-tags
- name: git push
run: git push origin --tags

0 comments on commit 02ceed8

Please sign in to comment.