fulldev-ui 0.4.17 → 0.4.24
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
name: Announce github releases to Discord
|
|
1
2
|
on:
|
|
2
3
|
release:
|
|
3
4
|
types: [published]
|
|
4
|
-
|
|
5
5
|
jobs:
|
|
6
6
|
github-releases-to-discord:
|
|
7
7
|
runs-on: ubuntu-latest
|
|
@@ -15,7 +15,7 @@ jobs:
|
|
|
15
15
|
color: '2105893'
|
|
16
16
|
username: 'Release Changelog'
|
|
17
17
|
avatar_url: 'https://raw.githubusercontent.com/fulldotdev/ui/main/siteicon.png'
|
|
18
|
-
content: '
|
|
18
|
+
content: 'A new release has just been published'
|
|
19
19
|
footer_title: 'fulldev-ui'
|
|
20
20
|
footer_icon_url: 'https://raw.githubusercontent.com/fulldotdev/ui/main/siteicon.png'
|
|
21
21
|
footer_timestamp: true
|
|
@@ -6,16 +6,32 @@ jobs:
|
|
|
6
6
|
build:
|
|
7
7
|
runs-on: ubuntu-latest
|
|
8
8
|
permissions:
|
|
9
|
-
contents:
|
|
9
|
+
contents: write
|
|
10
10
|
id-token: write
|
|
11
11
|
steps:
|
|
12
12
|
- uses: actions/checkout@v4
|
|
13
|
+
- name: Configure Git
|
|
14
|
+
run: |
|
|
15
|
+
git config user.name 'fulldev-bot'
|
|
16
|
+
git config user.email 'bot@full.dev'
|
|
17
|
+
- name: Authenticate with Git
|
|
18
|
+
env:
|
|
19
|
+
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
|
|
20
|
+
run: |
|
|
21
|
+
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
|
|
13
22
|
# Setup .npmrc file to publish to npm
|
|
14
23
|
- uses: actions/setup-node@v4
|
|
15
24
|
with:
|
|
16
25
|
node-version: '20.x'
|
|
17
26
|
registry-url: 'https://registry.npmjs.org'
|
|
18
|
-
-
|
|
27
|
+
- name: Set and push version from release tag
|
|
28
|
+
run: |
|
|
29
|
+
git checkout -b main
|
|
30
|
+
VERSION=${GITHUB_REF#refs/tags/v}
|
|
31
|
+
npm version $VERSION --no-git-tag-version
|
|
32
|
+
git add .
|
|
33
|
+
git commit -m "Bump to $VERSION"
|
|
34
|
+
git push --set-upstream origin main
|
|
19
35
|
- run: npm publish --provenance --access public
|
|
20
36
|
env:
|
|
21
37
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|