@cocreate/scrollbar 0.0.0-stage → 1.12.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.
@@ -0,0 +1,3 @@
1
+ # These are supported funding model platforms
2
+
3
+ github: CoCreateJS
@@ -0,0 +1,69 @@
1
+ name: Automated Workflow
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+
8
+ jobs:
9
+ about:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - name: Checkout repository
13
+ uses: actions/checkout@v7
14
+
15
+ - name: Sync package.json description and keywords to GitHub repository
16
+ env:
17
+ GH_TOKEN: ${{ secrets.GITHUB }}
18
+ run: |
19
+ if [ ! -f package.json ]; then
20
+ echo "No package.json found; skipping repository metadata sync."
21
+ exit 0
22
+ fi
23
+
24
+ DESCRIPTION=$(jq -r '.description // empty' package.json)
25
+ if [ -n "$DESCRIPTION" ]; then
26
+ gh api --method PATCH "repos/${GITHUB_REPOSITORY}" -f description="$DESCRIPTION"
27
+ else
28
+ echo "No package description found; leaving GitHub description unchanged."
29
+ fi
30
+
31
+ if jq -e '.keywords | type == "array"' package.json >/dev/null; then
32
+ TOPICS=$(jq -c '.keywords | map(ascii_downcase | gsub("[^a-z0-9-]+"; "-") | gsub("(^-+|-+$)"; "") | .[0:50]) | map(select(length > 0)) | unique | .[0:20]' package.json)
33
+ printf '{"names":%s}' "$TOPICS" | gh api --method PUT -H "Accept: application/vnd.github+json" "repos/${GITHUB_REPOSITORY}/topics" --input -
34
+ else
35
+ echo "No package keywords found; leaving GitHub topics unchanged."
36
+ fi
37
+
38
+ release:
39
+ runs-on: ubuntu-latest
40
+ steps:
41
+ - name: Checkout repository
42
+ uses: actions/checkout@v7
43
+ with:
44
+ fetch-depth: 0
45
+ token: ${{ secrets.GITHUB }} # Authenticates git CLI for tag/commit pushes
46
+
47
+ - name: Setup Node.js
48
+ uses: actions/setup-node@v7
49
+ with:
50
+ node-version: '24'
51
+
52
+ - name: Install Semantic Release & Plugins
53
+ run: |
54
+ npm install -g semantic-release \
55
+ @semantic-release/changelog \
56
+ @semantic-release/npm \
57
+ @semantic-release/github \
58
+ @semantic-release/git
59
+
60
+ - name: Run Semantic Release
61
+ id: semantic
62
+ run: npx semantic-release
63
+ env:
64
+ GITHUB_TOKEN: "${{ secrets.GITHUB }}"
65
+ NPM_TOKEN: "${{ secrets.NPM_TOKEN }}"
66
+
67
+ outputs:
68
+ new_release_published: "${{ steps.semantic.outputs.new_release_published }}"
69
+ new_release_version: "${{ steps.semantic.outputs.new_release_version }}"
@@ -0,0 +1,43 @@
1
+ name: Manual Workflow
2
+ on:
3
+ workflow_dispatch:
4
+ inputs:
5
+ invalidations:
6
+ description: |
7
+ If set to 'true', invalidates previous upload.
8
+ default: "true"
9
+ required: true
10
+
11
+ jobs:
12
+ cdn:
13
+ runs-on: ubuntu-latest
14
+ env:
15
+ DRY_RUN: ${{ github.event.inputs.dry_run }}
16
+ GITHUB_TOKEN: "${{ secrets.GITHUB }}"
17
+
18
+ steps:
19
+ - name: Checkout
20
+ uses: actions/checkout@v3
21
+ - name: setup nodejs
22
+ uses: actions/setup-node@v3
23
+ with:
24
+ node-version: 16
25
+ - name: yarn install
26
+ run: >
27
+ echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >
28
+ .npmrc
29
+
30
+ yarn install
31
+ - name: yarn build
32
+ run: yarn build
33
+ - name: upload latest bundle
34
+ uses: CoCreate-app/CoCreate-s3@master
35
+ with:
36
+ aws-key-id: "${{ secrets.AWSACCESSKEYID }}"
37
+ aws-access-key: "${{ secrets.AWSSECERTACCESSKEY }}"
38
+ distributionId: "${{ secrets.DISTRIBUTION_ID }}"
39
+ bucket: testcrudbucket
40
+ source: ./dist
41
+ destination: /overlay-scroll/latest
42
+ acl: public-read
43
+ invalidations: ${{ github.event.inputs.invalidations }}