@stonyx/utils 0.2.2 → 0.2.3-beta.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.
@@ -2,35 +2,15 @@ name: CI
2
2
 
3
3
  on:
4
4
  pull_request:
5
- branches:
6
- - dev
7
- - main
5
+ branches: [dev, main]
8
6
 
9
7
  concurrency:
10
8
  group: ci-${{ github.head_ref || github.ref }}
11
9
  cancel-in-progress: true
12
10
 
11
+ permissions:
12
+ contents: read
13
+
13
14
  jobs:
14
15
  test:
15
- runs-on: ubuntu-latest
16
-
17
- steps:
18
- - name: Checkout code
19
- uses: actions/checkout@v3
20
-
21
- - name: Setup pnpm
22
- uses: pnpm/action-setup@v4
23
- with:
24
- version: 9
25
-
26
- - name: Set up Node.js
27
- uses: actions/setup-node@v3
28
- with:
29
- node-version: 22.18.0
30
- cache: 'pnpm'
31
-
32
- - name: Install dependencies
33
- run: pnpm i
34
-
35
- - name: Run tests
36
- run: pnpm test
16
+ uses: abofs/stonyx-workflows/.github/workflows/ci.yml@main
@@ -0,0 +1,35 @@
1
+ name: Publish to NPM
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ inputs:
6
+ version-type:
7
+ description: 'Version type'
8
+ required: true
9
+ type: choice
10
+ options:
11
+ - patch
12
+ - minor
13
+ - major
14
+ custom-version:
15
+ description: 'Custom version (optional, overrides version-type)'
16
+ required: false
17
+ type: string
18
+ pull_request:
19
+ types: [opened, synchronize, reopened]
20
+ branches: [main, dev]
21
+ push:
22
+ branches: [main]
23
+
24
+ permissions:
25
+ contents: write
26
+ id-token: write
27
+ pull-requests: write
28
+
29
+ jobs:
30
+ publish:
31
+ uses: abofs/stonyx-workflows/.github/workflows/npm-publish.yml@main
32
+ with:
33
+ version-type: ${{ github.event.inputs.version-type }}
34
+ custom-version: ${{ github.event.inputs.custom-version }}
35
+ secrets: inherit
package/package.json CHANGED
@@ -3,8 +3,12 @@
3
3
  "keywords": [
4
4
  "stonyx-module"
5
5
  ],
6
- "version": "0.2.2",
6
+ "version": "0.2.3-beta.0",
7
7
  "description": "Utils module for Stonyx Framework",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "https://github.com/abofs/stonyx-utils"
11
+ },
8
12
  "type": "module",
9
13
  "exports": {
10
14
  "./date": "./src/date.js",
@@ -13,6 +17,10 @@
13
17
  "./promise": "./src/promise.js",
14
18
  "./string": "./src/string.js"
15
19
  },
20
+ "publishConfig": {
21
+ "access": "public",
22
+ "provenance": true
23
+ },
16
24
  "author": "Stone Costa",
17
25
  "license": "Apache-2.0",
18
26
  "contributors": [
@@ -23,6 +31,7 @@
23
31
  "qunit": "^2.24.1",
24
32
  "sinon": "^21.0.0"
25
33
  },
34
+ "dependencies": {},
26
35
  "scripts": {
27
36
  "test": "qunit"
28
37
  }