@cocreate/pwa 1.27.0 → 2.0.0

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,3 +1,3 @@
1
1
  # These are supported funding model platforms
2
2
 
3
- github: CoCreate-app
3
+ github: CoCreateJS
@@ -7,36 +7,61 @@ jobs:
7
7
  about:
8
8
  runs-on: ubuntu-latest
9
9
  steps:
10
- - name: Checkout
11
- uses: actions/checkout@v3
12
- - name: Setup Node.js
13
- uses: actions/setup-node@v3
14
- with:
15
- node-version: 16
16
- - name: Jaid/action-sync-node-meta
17
- uses: jaid/action-sync-node-meta@v1.4.0
18
- with:
19
- direction: overwrite-github
20
- githubToken: "${{ secrets.GITHUB }}"
10
+ - name: Checkout repository
11
+ uses: actions/checkout@v7
12
+
13
+ - name: Sync package.json description and keywords to GitHub repository
14
+ env:
15
+ GH_TOKEN: ${{ secrets.GITHUB }}
16
+ run: |
17
+ if [ ! -f package.json ]; then
18
+ echo "No package.json found; skipping repository metadata sync."
19
+ exit 0
20
+ fi
21
+
22
+ DESCRIPTION=$(jq -r '.description // empty' package.json)
23
+ if [ -n "$DESCRIPTION" ]; then
24
+ gh api --method PATCH "repos/${GITHUB_REPOSITORY}" -f description="$DESCRIPTION"
25
+ else
26
+ echo "No package description found; leaving GitHub description unchanged."
27
+ fi
28
+
29
+ if jq -e '.keywords | type == "array"' package.json >/dev/null; then
30
+ TOPICS=$(jq -c '.keywords | map(ascii_downcase | gsub("[^a-z0-9-]+"; "-") | gsub("(^-+|-+$)"; "") | .[0:50]) | map(select(length > 0)) | unique | .[0:20]' package.json)
31
+ printf '{"names":%s}' "$TOPICS" | gh api --method PUT -H "Accept: application/vnd.github+json" "repos/${GITHUB_REPOSITORY}/topics" --input -
32
+ else
33
+ echo "No package keywords found; leaving GitHub topics unchanged."
34
+ fi
35
+
21
36
  release:
22
37
  runs-on: ubuntu-latest
23
38
  steps:
24
- - name: Checkout
25
- uses: actions/checkout@v3
26
- - name: Setup Node.js
27
- uses: actions/setup-node@v3
39
+ - name: Checkout repository
40
+ uses: actions/checkout@v7
28
41
  with:
29
- node-version: 22
30
- - name: Semantic Release
31
- uses: cycjimmy/semantic-release-action@v3
32
- id: semantic
42
+ fetch-depth: 0
43
+ token: ${{ secrets.GITHUB }}
44
+
45
+ - name: Setup Node.js
46
+ uses: actions/setup-node@v7
33
47
  with:
34
- extra_plugins: |
35
- @semantic-release/changelog
48
+ node-version: '24'
49
+
50
+ - name: Install Semantic Release & Plugins
51
+ run: |
52
+ npm install -g semantic-release \
53
+ @semantic-release/changelog \
54
+ @semantic-release/npm \
55
+ @semantic-release/github \
36
56
  @semantic-release/git
37
- @semantic-release/github
57
+
58
+ - name: Run Semantic Release
59
+ id: semantic
60
+ run: npx semantic-release
38
61
  env:
39
62
  GITHUB_TOKEN: "${{ secrets.GITHUB }}"
63
+ NPM_TOKEN: "${{ secrets.NPM_TOKEN }}"
64
+
40
65
  outputs:
41
66
  new_release_published: "${{ steps.semantic.outputs.new_release_published }}"
42
67
  new_release_version: "${{ steps.semantic.outputs.new_release_version }}"