fulldev-ui 0.4.27 → 0.4.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2 @@
1
+ # Make silveltman code owners for the entire repository
2
+ * @silveltman
@@ -36,7 +36,7 @@ jobs:
36
36
  node-version: '20.x'
37
37
  registry-url: 'https://registry.npmjs.org'
38
38
 
39
- - name: Bump Version
39
+ - name: Bump Version and Create PR
40
40
  run: |
41
41
  VERSION=${GITHUB_REF#refs/tags/v}
42
42
  BRANCH_NAME="bump-version-${VERSION}"
@@ -45,34 +45,44 @@ jobs:
45
45
  git add package.json
46
46
  git commit -m "Bump to version $VERSION"
47
47
  git push origin $BRANCH_NAME
48
+ gh pr create --base main --head $BRANCH_NAME --title "Bump version to ${VERSION}" --body "Automated version bump to ${VERSION}"
49
+ gh pr merge --auto --merge $BRANCH_NAME
50
+ env:
51
+ GH_TOKEN: ${{ secrets.BOT_TOKEN }}
48
52
 
49
- - name: Create Pull Request
50
- id: cpr
51
- uses: peter-evans/create-pull-request@v5
52
- with:
53
- token: ${{ secrets.BOT_TOKEN }}
54
- branch: bump-version-${VERSION}
55
- base: main
56
- title: 'Bump version to $VERSION'
57
- body: 'Automated version bump to $VERSION'
58
- delete-branch: true
59
-
60
- - name: Enable Pull Request Automerge
61
- if: steps.cpr.outputs.pull-request-number
53
+ - name: Review PR
62
54
  run: |
63
- gh pr merge --auto --merge "${{ steps.cpr.outputs.pull-request-number }}"
55
+ gh pr review $BRANCH_NAME --approve --body "Automated approval for version bump"
64
56
  env:
65
- GH_TOKEN: ${{ secrets.BOT_TOKEN }}
57
+ GH_TOKEN: ${{ secrets.GHP_TOKEN }}
66
58
 
67
- - name: Wait for checks
68
- if: steps.cpr.outputs.pull-request-number
59
+ - name: Wait for PR to be merged
69
60
  run: |
70
- gh pr checks ${{ steps.cpr.outputs.pull-request-number }} --watch
61
+ PR_URL=$(gh pr view $BRANCH_NAME --json url -q .url)
62
+ for i in {1..3}; do
63
+ PR_STATE=$(gh pr view $BRANCH_NAME --json state -q .state)
64
+ if [ "$PR_STATE" = "MERGED" ]; then
65
+ echo "PR has been merged"
66
+ exit 0
67
+ elif [ "$PR_STATE" = "CLOSED" ]; then
68
+ echo "PR was closed without merging"
69
+ exit 1
70
+ fi
71
+ echo "Attempt $i: Waiting for PR to be merged..."
72
+ if [ $i -eq 3 ]; then
73
+ echo "PR not merged after 3 attempts. Exiting with failure."
74
+ exit 1
75
+ fi
76
+ sleep 60
77
+ done
71
78
  env:
72
79
  GH_TOKEN: ${{ secrets.BOT_TOKEN }}
73
80
 
74
81
  - name: Publish to npm
75
- run: npm publish --access public
82
+ run: |
83
+ git checkout main
84
+ git pull origin main
85
+ npm publish --access public
76
86
  env:
77
87
  NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
78
88
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fulldev-ui",
3
- "version": "0.4.27",
3
+ "version": "0.4.28",
4
4
  "description": "A component library built for Astro",
5
5
  "homepage": "https://ui.full.dev",
6
6
  "bugs": "https://github.com/fulldotdev/ui/issues",