@shakerquiz/url 0.0.56 → 0.0.58
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,35 +1,81 @@
|
|
|
1
|
-
name: Publish
|
|
1
|
+
name: Update and/or Publish package
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
pull_request:
|
|
5
|
+
types: [ closed ]
|
|
6
6
|
branches:
|
|
7
7
|
- main
|
|
8
|
+
workflow_dispatch:
|
|
9
|
+
inputs:
|
|
10
|
+
utilities:
|
|
11
|
+
description: "Bump @shakerquiz/utilities@aquamarine ?"
|
|
12
|
+
required: false
|
|
13
|
+
default: false
|
|
14
|
+
type: boolean
|
|
15
|
+
pr:
|
|
16
|
+
description: "Open PR ?"
|
|
17
|
+
required: false
|
|
18
|
+
default: false
|
|
19
|
+
type: boolean
|
|
8
20
|
|
|
9
21
|
permissions:
|
|
10
22
|
id-token: write
|
|
11
23
|
contents: write
|
|
24
|
+
pull-requests: write
|
|
12
25
|
|
|
13
26
|
jobs:
|
|
27
|
+
update:
|
|
28
|
+
runs-on: ubuntu-latest
|
|
29
|
+
steps:
|
|
30
|
+
- uses: actions/checkout@v6
|
|
31
|
+
if: github.event_name == 'workflow_dispatch'
|
|
32
|
+
with:
|
|
33
|
+
fetch-depth: 0
|
|
34
|
+
- uses: actions/setup-node@v6
|
|
35
|
+
if: github.event_name == 'workflow_dispatch'
|
|
36
|
+
with:
|
|
37
|
+
node-version: 24
|
|
38
|
+
- run: npm i @shakerquiz/utilities@aquamarine --save-exact --prefer-online
|
|
39
|
+
if: github.event_name == 'workflow_dispatch' && inputs.utilities
|
|
40
|
+
- name: Commit changes
|
|
41
|
+
if: github.event_name == 'workflow_dispatch'
|
|
42
|
+
run: |
|
|
43
|
+
git config user.name "github-actions[bot]"
|
|
44
|
+
git config user.email "github-actions[bot]@users.noreply.github.com"
|
|
45
|
+
git add package.json package-lock.json
|
|
46
|
+
git commit -m "bump @shakerquiz/* packages" || true
|
|
47
|
+
- run: git checkout -b "chore/bump-$GITHUB_RUN_ID-$GITHUB_RUN_ATTEMPT"
|
|
48
|
+
if: github.event_name == 'workflow_dispatch' && inputs.pr
|
|
49
|
+
- run: git push origin HEAD
|
|
50
|
+
if: github.event_name == 'workflow_dispatch'
|
|
51
|
+
- name: Create PR from branch
|
|
52
|
+
if: github.event_name == 'workflow_dispatch' && inputs.pr
|
|
53
|
+
env:
|
|
54
|
+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
55
|
+
run: |
|
|
56
|
+
gh pr create \
|
|
57
|
+
--title "bump @shakerquiz/* packages" \
|
|
58
|
+
--body "Automated dependency bump via workflow_dispatch."
|
|
14
59
|
publish:
|
|
60
|
+
needs: update
|
|
61
|
+
if: |
|
|
62
|
+
github.event.pull_request.merged == true ||
|
|
63
|
+
github.event_name == 'workflow_dispatch' && inputs.pr == false
|
|
15
64
|
runs-on: ubuntu-latest
|
|
16
65
|
steps:
|
|
17
|
-
- uses: actions/checkout@
|
|
66
|
+
- uses: actions/checkout@v6
|
|
18
67
|
with:
|
|
19
68
|
fetch-depth: 0
|
|
20
|
-
|
|
69
|
+
ref: ${{ github.ref_name }}
|
|
21
70
|
- uses: actions/setup-node@v6
|
|
22
71
|
with:
|
|
23
72
|
node-version: 24
|
|
24
|
-
|
|
25
73
|
- uses: oven-sh/setup-bun@v2
|
|
26
|
-
|
|
74
|
+
- run: npm install -g npm@latest
|
|
27
75
|
- run: git config user.name "github-actions[bot]"
|
|
28
76
|
- run: git config user.email "github-actions[bot]@users.noreply.github.com"
|
|
29
|
-
|
|
30
77
|
- run: npm version patch
|
|
31
78
|
- run: npm ci
|
|
32
79
|
- run: npm publish
|
|
33
|
-
|
|
34
80
|
- run: git commit -am "Commit autogenerated output" || true
|
|
35
81
|
- run: git push --follow-tags
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@shakerquiz/url",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.58",
|
|
5
5
|
"author": "yurkimus <yurkimus@gmail.com>",
|
|
6
6
|
"license": "ISC",
|
|
7
7
|
"repository": {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"./*": "./source/*/index.js"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@shakerquiz/utilities": "4.0.
|
|
18
|
+
"@shakerquiz/utilities": "4.0.29"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@types/bun": "1.3.6",
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
name: Bump @shakerquiz/* packages
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
workflow_dispatch:
|
|
5
|
-
inputs:
|
|
6
|
-
utilities:
|
|
7
|
-
description: "@shakerquiz/utilities@aquamarine"
|
|
8
|
-
required: false
|
|
9
|
-
default: true
|
|
10
|
-
type: boolean
|
|
11
|
-
pr:
|
|
12
|
-
description: "Open PR ?"
|
|
13
|
-
required: false
|
|
14
|
-
default: true
|
|
15
|
-
type: boolean
|
|
16
|
-
|
|
17
|
-
permissions:
|
|
18
|
-
contents: write
|
|
19
|
-
pull-requests: write
|
|
20
|
-
|
|
21
|
-
jobs:
|
|
22
|
-
bump:
|
|
23
|
-
runs-on: ubuntu-latest
|
|
24
|
-
steps:
|
|
25
|
-
- uses: actions/checkout@v4
|
|
26
|
-
|
|
27
|
-
- uses: actions/setup-node@v4
|
|
28
|
-
with:
|
|
29
|
-
node-version: 24
|
|
30
|
-
|
|
31
|
-
- name: Create branch
|
|
32
|
-
if: ${{ inputs.pr }}
|
|
33
|
-
run: |
|
|
34
|
-
BRANCH="chore/bump-shakerquiz-$(date +%Y%m%d-%H%M%S)"
|
|
35
|
-
echo "BRANCH=$BRANCH" >> "$GITHUB_ENV"
|
|
36
|
-
git checkout -b "$BRANCH"
|
|
37
|
-
|
|
38
|
-
- name: "@shakerquiz/utilities"
|
|
39
|
-
if: ${{ inputs.utilities }}
|
|
40
|
-
run: npm i @shakerquiz/utilities@aquamarine --save-exact --prefer-online
|
|
41
|
-
|
|
42
|
-
- name: Commit changes
|
|
43
|
-
run: |
|
|
44
|
-
git config user.name "github-actions[bot]"
|
|
45
|
-
git config user.email "github-actions[bot]@users.noreply.github.com"
|
|
46
|
-
git add package.json package-lock.json
|
|
47
|
-
git commit -m "chore: bump @shakerquiz packages" || true
|
|
48
|
-
|
|
49
|
-
- name: Push branch
|
|
50
|
-
run: |
|
|
51
|
-
git push origin HEAD
|
|
52
|
-
|
|
53
|
-
- name: Open PR
|
|
54
|
-
if: ${{ inputs.pr }}
|
|
55
|
-
env:
|
|
56
|
-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
57
|
-
run: |
|
|
58
|
-
gh pr create \
|
|
59
|
-
--title "chore: bump @shakerquiz packages" \
|
|
60
|
-
--body "Automated dependency bump via workflow_dispatch." \
|
|
61
|
-
--head "$BRANCH" || true
|
|
62
|
-
|
|
63
|
-
publish:
|
|
64
|
-
needs: bump
|
|
65
|
-
if: ${{ inputs.pr == false }}
|
|
66
|
-
uses: ./.github/workflows/publish.yml
|
|
67
|
-
secrets: inherit
|
|
68
|
-
permissions:
|
|
69
|
-
id-token: write
|
|
70
|
-
contents: write
|