diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d8c42cc2b7..f79f489e68 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -4,7 +4,8 @@ on: branches: - "main" - "releases/**" - +permissions: + contents: write jobs: tag-and-publish-to-npm: runs-on: ubuntu-latest @@ -29,9 +30,17 @@ jobs: - name: Install dependencies run: yarn - - name: Publish all packages - run: ./scripts/publish.sh latest - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + # - name: Publish all packages + # run: ./scripts/publish.sh latest + # env: + # NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + + # Trigger a new build to ensure Vercel creates a distinct release branch, rather than reusing latest + - name: Triggering new build + run: | + git config --global user.name 'chrisvxd' + git config --global user.email 'chrisvxd@users.noreply.github.com' + git commit -m "ci: trigger build" --allow-empty + git push timeout-minutes: 10