Explorar o código

feat: enable JSR publish

Sv443 hai 6 meses
pai
achega
6ae316013e
Modificáronse 3 ficheiros con 4 adicións e 4 borrados
  1. 1 1
      .github/workflows/build-and-publish.yml
  2. 2 2
      jsr.json
  3. 1 1
      package.json

+ 1 - 1
.github/workflows/build-and-publish.yml

@@ -32,7 +32,7 @@ jobs:
           name: dist
           path: dist/
           retention-days: 2
-      - name: Create release
+      - name: Create release or publish package
         uses: changesets/action@v1
         id: changesets
         with:

+ 2 - 2
jsr.json

@@ -1,7 +1,7 @@
 {
   "$schema": "https://jsr.io/schema/config-file.v1.json",
   "name": "@sv443-network/userutils",
-  "version": "7.1.0",
+  "version": "8.1.0",
   "exports": "./lib/index.ts",
   "publish": {
     "include": [
@@ -16,4 +16,4 @@
       "LICENSE.txt"
     ]
   }
-}
+}

+ 1 - 1
package.json

@@ -25,7 +25,7 @@
     "dev": "npm run build-common -- --sourcemap --watch --onSuccess \"npm run build-types && echo Finished building.\"",
     "dev-all": "npm run build-all -- --watch",
     "update-jsr-version": "npm run node-ts -- ./tools/update-jsr-version.mts",
-    "publish-package": "changeset publish",
+    "publish-package": "changeset publish && npm run publish-package-jsr",
     "publish-package-jsr": "npm run update-jsr-version && npx jsr publish",
     "node-ts": "node --no-warnings=ExperimentalWarning --enable-source-maps --loader ts-node/esm",
     "test-serve": "npm run node-ts -- ./test/TestPage/server.mts",