@@ -20,7 +20,7 @@ for the package scope, Node.js version, registry URL, and other options. The wor
2020## Workflow Inputs 🛠️
2121
2222| ** Input** | ** Description** | ** Required** | ** Default** |
23- | -------------------------- | --------------------------------------------------------------- | -------------- | ------------------------------------- |
23+ | ------------------------ | ------------------------------------------------------------- | ------------ | ----------------------------------- |
2424| ** scope** | NPM package scope (e.g., ` @iexec ` ). | No | ` @iexec ` |
2525| ** node-version** | Node.js version to use. | No | ` 20 ` |
2626| ** registry** | NPM registry URL. | No | ` https://registry.npmjs.org ` |
@@ -40,11 +40,12 @@ for the package scope, Node.js version, registry URL, and other options. The wor
4040| ** artifact-name** | Name of an artifact to download before the build. | No | ` '' ` (empty string) |
4141| ** artifact-path** | Destination path for the downloaded artifact. | No | ` '' ` (empty string) |
4242| ** version** | Version to publish (leave empty to use package.json version). | No | ` '' ` (empty string) |
43+ | ** dry-run** | Run in dry-run mode (the package will not be published). | No | ` false ` |
4344
4445### Secrets 🔐
4546
4647| ** Secret** | ** Description** | ** Required** |
47- | --------------- | ----------------- | -------------- |
48+ | ------------- | --------------- | ------------ |
4849| ** npm-token** | NPM auth token. | Yes |
4950
5051## Job and Steps ⚙️
@@ -54,9 +55,9 @@ for the package scope, Node.js version, registry URL, and other options. The wor
5455- ** Runs On** : ` ubuntu-latest ` .
5556- ** Environment** : Uses the environment specified in ` inputs.environment ` .
5657- ** Permissions** :
57- - ` contents: read ` – to access repository contents. 🔍
58- - ` packages: write ` – to allow package publication. ✨
59- - ` id-token: write ` – for authentication purposes. 🔑
58+ - ` contents: read ` – to access repository contents. 🔍
59+ - ` packages: write ` – to allow package publication. ✨
60+ - ` id-token: write ` – for authentication purposes. 🔑
6061
6162## How to Use This Reusable Workflow 🔄
6263
@@ -76,14 +77,14 @@ for the package scope, Node.js version, registry URL, and other options. The wor
7677 publish :
7778 uses : iExecBlockchainComputing/github-actions-workflows/.github/workflows/publish-npm.yml@main
7879 with :
79- node-version : ' 22 '
80- build-command : ' npm run build:prod'
80+ node-version : " 22 "
81+ build-command : " npm run build:prod"
8182 run-tests : true
82- test-command : ' npm run test:ci'
83- lint-command : ' npm run lint'
84- type-check-command : ' npm run check-types'
85- format-check-command : ' npm run check-format'
86- tag-prefix : ' v '
83+ test-command : " npm run test:ci"
84+ lint-command : " npm run lint"
85+ type-check-command : " npm run check-types"
86+ format-check-command : " npm run check-format"
87+ tag-prefix : " v "
8788 # Optional: Download an artifact before building
8889 # artifact-name: 'my-build-artifact'
8990 # artifact-path: './dist'
0 commit comments