Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Fix SDK Trusted Publishing with npm upgrade (#13538)

Damian Legawiecc0922992b476
diff --git a/.github/workflows/sdk.yml b/.github/workflows/sdk.yml
index 808c41ceb4..70aa4d6db2 100644
--- a/.github/workflows/sdk.yml
+++ b/.github/workflows/sdk.yml
@@ -5,9 +5,11 @@ on:
branches: [main]
paths:
- 'sdk/**'
+ - '.github/workflows/sdk.yml'
pull_request:
paths:
- 'sdk/**'
+ - '.github/workflows/sdk.yml'
permissions:
contents: read
@@ -59,6 +61,10 @@ jobs:
- run: npm ci
+ - name: Upgrade npm for Trusted Publishing support
+ run: npm install -g npm@latest
+ working-directory: .
+
- name: Check if version is published
id: check
run: |
diff --git a/sdk/CHANGELOG.md b/sdk/CHANGELOG.md
index aad99e9dc3..3d2720f7f9 100644
--- a/sdk/CHANGELOG.md
+++ b/sdk/CHANGELOG.md
@@ -1,5 +1,11 @@
# @spree/sdk
+## 0.1.4
+
+### Patch Changes
+
+- Fix automated release with npm Trusted Publishing
+
## 0.1.3
### Patch Changes
diff --git a/sdk/package.json b/sdk/package.json
index a6ce554907..d0be3ce0f2 100644
--- a/sdk/package.json
+++ b/sdk/package.json
@@ -1,6 +1,6 @@
{
"name": "@spree/sdk",
- "version": "0.1.3",
+ "version": "0.1.4",
"description": "Official TypeScript SDK for Spree Commerce API",
"type": "module",
"main": "./dist/index.cjs",