Second attempt at trusted publishing
This commit is contained in:
parent
8d44745964
commit
0e54217929
6 changed files with 24 additions and 5 deletions
|
|
@ -50,12 +50,14 @@ test-integration:
|
||||||
|
|
||||||
publish:
|
publish:
|
||||||
extends: .node-common
|
extends: .node-common
|
||||||
# npm trusted publishing via GitLab OIDC — requires instance runner for OIDC support.
|
# npm trusted publishing via GitLab OIDC — no NPM_TOKEN needed.
|
||||||
# Each @wizardconnect/* package must be linked to this GitLab project
|
# Each @wizardconnect/* package must be linked to this GitLab project
|
||||||
# on npmjs.com: package Settings > Publishing access > Trusted publishers.
|
# on npmjs.com: package Settings > Publishing access > Trusted publishers.
|
||||||
tags:
|
tags:
|
||||||
- saas-linux-small-amd64 # force gitlab instance runner
|
- saas-linux-small-amd64 # force gitlab instance runner (not self hosted)
|
||||||
id_tokens:
|
id_tokens:
|
||||||
|
NPM_ID_TOKEN:
|
||||||
|
aud: "npm:registry.npmjs.org"
|
||||||
SIGSTORE_ID_TOKEN:
|
SIGSTORE_ID_TOKEN:
|
||||||
aud: sigstore
|
aud: sigstore
|
||||||
script:
|
script:
|
||||||
|
|
@ -88,8 +90,10 @@ pages:
|
||||||
force-publish:
|
force-publish:
|
||||||
extends: .node-common
|
extends: .node-common
|
||||||
tags:
|
tags:
|
||||||
- saas-linux-small-amd64 # force gitlab instance runners
|
- saas-linux-small-amd64 # force gitlab instance runner (not self hosted)
|
||||||
id_tokens:
|
id_tokens:
|
||||||
|
NPM_ID_TOKEN:
|
||||||
|
aud: "npm:registry.npmjs.org"
|
||||||
SIGSTORE_ID_TOKEN:
|
SIGSTORE_ID_TOKEN:
|
||||||
aud: sigstore
|
aud: sigstore
|
||||||
script:
|
script:
|
||||||
|
|
|
||||||
|
|
@ -130,7 +130,7 @@ function publishPackage(packagePath, packageName) {
|
||||||
log(`Publishing ${packageName}`);
|
log(`Publishing ${packageName}`);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
execCommand('npm publish --provenance --access public', packagePath);
|
execCommand('npm publish --access public', packagePath);
|
||||||
log(`Successfully published ${packageName}`);
|
log(`Successfully published ${packageName}`);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
log(`Failed to publish ${packageName}: ${error.message}`);
|
log(`Failed to publish ${packageName}: ${error.message}`);
|
||||||
|
|
|
||||||
|
|
@ -114,7 +114,7 @@ function publishPackage(packagePath, packageName) {
|
||||||
log(`Publishing ${packageName}`);
|
log(`Publishing ${packageName}`);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
execCommand('npm publish --provenance --access public', packagePath);
|
execCommand('npm publish --access public --loglevel verbose', packagePath);
|
||||||
log(`Successfully published ${packageName}`);
|
log(`Successfully published ${packageName}`);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
log(`Failed to publish ${packageName}: ${error.message}`);
|
log(`Failed to publish ${packageName}: ${error.message}`);
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,11 @@
|
||||||
"version": "0.1.2",
|
"version": "0.1.2",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "Transport and protocol primitives for WizardConnect",
|
"description": "Transport and protocol primitives for WizardConnect",
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://gitlab.com/riftenlabs/lib/wizardconnect",
|
||||||
|
"directory": "packages/core"
|
||||||
|
},
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
"files": [
|
"files": [
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,11 @@
|
||||||
"version": "0.1.2",
|
"version": "0.1.2",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "Dapp-side integration helpers for WizardConnect",
|
"description": "Dapp-side integration helpers for WizardConnect",
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://gitlab.com/riftenlabs/lib/wizardconnect",
|
||||||
|
"directory": "packages/dapp"
|
||||||
|
},
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
"files": [
|
"files": [
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,11 @@
|
||||||
"version": "0.1.2",
|
"version": "0.1.2",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "Wallet-side integration helpers for WizardConnect",
|
"description": "Wallet-side integration helpers for WizardConnect",
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://gitlab.com/riftenlabs/lib/wizardconnect",
|
||||||
|
"directory": "packages/wallet"
|
||||||
|
},
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
"files": [
|
"files": [
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue