fulldev-ui 0.4.26 → 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
@@ -0,0 +1,99 @@
1
+ name: Release
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+
7
+ jobs:
8
+ build:
9
+ runs-on: ubuntu-latest
10
+ permissions:
11
+ contents: write
12
+ id-token: write
13
+ pull-requests: write
14
+
15
+ steps:
16
+ - uses: actions/checkout@v4
17
+ with:
18
+ fetch-depth: 0
19
+
20
+ - name: Configure Git
21
+ run: |
22
+ git config --global user.name 'fulldev-bot'
23
+ git config --global user.email 'bot@full.dev'
24
+ git remote set-url origin https://x-access-token:${{ secrets.BOT_TOKEN }}@github.com/${{ github.repository }}.git
25
+ env:
26
+ BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
27
+
28
+ - name: Fetch and Pull Latest Changes
29
+ run: |
30
+ git fetch origin
31
+ git pull origin HEAD:main
32
+
33
+ - name: Set up Node.js
34
+ uses: actions/setup-node@v4
35
+ with:
36
+ node-version: '20.x'
37
+ registry-url: 'https://registry.npmjs.org'
38
+
39
+ - name: Bump Version and Create PR
40
+ run: |
41
+ VERSION=${GITHUB_REF#refs/tags/v}
42
+ BRANCH_NAME="bump-version-${VERSION}"
43
+ git checkout -b $BRANCH_NAME
44
+ npm version $VERSION --no-git-tag-version
45
+ git add package.json
46
+ git commit -m "Bump to version $VERSION"
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 }}
52
+
53
+ - name: Review PR
54
+ run: |
55
+ gh pr review $BRANCH_NAME --approve --body "Automated approval for version bump"
56
+ env:
57
+ GH_TOKEN: ${{ secrets.GHP_TOKEN }}
58
+
59
+ - name: Wait for PR to be merged
60
+ run: |
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
78
+ env:
79
+ GH_TOKEN: ${{ secrets.BOT_TOKEN }}
80
+
81
+ - name: Publish to npm
82
+ run: |
83
+ git checkout main
84
+ git pull origin main
85
+ npm publish --access public
86
+ env:
87
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
88
+
89
+ - name: Github Releases To Discord
90
+ uses: SethCohen/github-releases-to-discord@v1.13.1
91
+ with:
92
+ webhook_url: ${{ secrets.DISCORD_WEBHOOK_URL }}
93
+ color: '2105893'
94
+ username: 'Release Changelog'
95
+ avatar_url: 'https://raw.githubusercontent.com/fulldotdev/ui/main/siteicon.png'
96
+ content: 'A new release has just been published'
97
+ footer_title: 'fulldev-ui'
98
+ footer_icon_url: 'https://raw.githubusercontent.com/fulldotdev/ui/main/siteicon.png'
99
+ footer_timestamp: true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fulldev-ui",
3
- "version": "0.4.26",
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",
@@ -1,21 +0,0 @@
1
- name: Announce github releases to Discord
2
- on:
3
- release:
4
- types: [published]
5
- jobs:
6
- github-releases-to-discord:
7
- runs-on: ubuntu-latest
8
- steps:
9
- - name: Checkout
10
- uses: actions/checkout@v3
11
- - name: Github Releases To Discord
12
- uses: SethCohen/github-releases-to-discord@v1.13.1
13
- with:
14
- webhook_url: ${{ secrets.DISCORD_WEBHOOK_URL }}
15
- color: '2105893'
16
- username: 'Release Changelog'
17
- avatar_url: 'https://raw.githubusercontent.com/fulldotdev/ui/main/siteicon.png'
18
- content: 'A new release has just been published'
19
- footer_title: 'fulldev-ui'
20
- footer_icon_url: 'https://raw.githubusercontent.com/fulldotdev/ui/main/siteicon.png'
21
- footer_timestamp: true
@@ -1,38 +0,0 @@
1
- name: Publish Package to npmjs
2
-
3
- on:
4
- release:
5
- types: [published]
6
-
7
- jobs:
8
- build:
9
- runs-on: ubuntu-latest
10
- permissions:
11
- contents: write
12
- id-token: write
13
-
14
- steps:
15
- - uses: actions/checkout@v4
16
-
17
- - name: Configure Git and Bump Version
18
- run: |
19
- git config --global user.name 'fulldev-bot'
20
- git config --global user.email 'bot@full.dev'
21
- git remote set-url origin https://x-access-token:${{ secrets.BOT_TOKEN }}@github.com/${{ github.repository }}.git
22
-
23
- VERSION=${GITHUB_REF#refs/tags/v}
24
- npm version $VERSION --no-git-tag-version
25
- git add package.json
26
- git commit -m "Bump to version $VERSION"
27
- git push origin HEAD:main
28
-
29
- - name: Set up Node.js
30
- uses: actions/setup-node@v4
31
- with:
32
- node-version: '20.x'
33
- registry-url: 'https://registry.npmjs.org'
34
-
35
- - name: Publish to npm
36
- run: npm publish --access public
37
- env:
38
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}