fulldev-ui 0.4.25 → 0.4.27
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,89 @@
|
|
|
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
|
|
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
|
+
|
|
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
|
|
62
|
+
run: |
|
|
63
|
+
gh pr merge --auto --merge "${{ steps.cpr.outputs.pull-request-number }}"
|
|
64
|
+
env:
|
|
65
|
+
GH_TOKEN: ${{ secrets.BOT_TOKEN }}
|
|
66
|
+
|
|
67
|
+
- name: Wait for checks
|
|
68
|
+
if: steps.cpr.outputs.pull-request-number
|
|
69
|
+
run: |
|
|
70
|
+
gh pr checks ${{ steps.cpr.outputs.pull-request-number }} --watch
|
|
71
|
+
env:
|
|
72
|
+
GH_TOKEN: ${{ secrets.BOT_TOKEN }}
|
|
73
|
+
|
|
74
|
+
- name: Publish to npm
|
|
75
|
+
run: npm publish --access public
|
|
76
|
+
env:
|
|
77
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
78
|
+
|
|
79
|
+
- name: Github Releases To Discord
|
|
80
|
+
uses: SethCohen/github-releases-to-discord@v1.13.1
|
|
81
|
+
with:
|
|
82
|
+
webhook_url: ${{ secrets.DISCORD_WEBHOOK_URL }}
|
|
83
|
+
color: '2105893'
|
|
84
|
+
username: 'Release Changelog'
|
|
85
|
+
avatar_url: 'https://raw.githubusercontent.com/fulldotdev/ui/main/siteicon.png'
|
|
86
|
+
content: 'A new release has just been published'
|
|
87
|
+
footer_title: 'fulldev-ui'
|
|
88
|
+
footer_icon_url: 'https://raw.githubusercontent.com/fulldotdev/ui/main/siteicon.png'
|
|
89
|
+
footer_timestamp: true
|
package/package.json
CHANGED
|
@@ -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 }}
|