5252 id-token : write
5353 packages : write
5454 secrets :
55- # GitHub token to use for authentication .
55+ # GitHub token to use when downloading the package tarball artifact .
5656 # Defaults to `GITHUB_TOKEN` if not provided.
5757 github-token : " "
58-
59- # Authentication token for the package registry.
60- registry-token : " "
6158 with :
6259 # JSON array of runner(s) to use.
6360 # See https://docs.github.com/en/actions/using-jobs/choosing-the-runner-for-a-job.
@@ -77,16 +74,19 @@ jobs:
7774 # Default: `public`
7875 access : public
7976
80- # npm distribution tag for the published package.
77+ # npm distribution tag for the published package. Leave empty to use npm defaults.
8178 # Common values:
8279 # - `latest` - Default tag for stable releases
8380 # - `next` - Prerelease or beta versions
8481 # - `canary` - Canary/nightly builds
8582 #
83+ # If omitted for a pushed Git tag, the workflow tries to reuse the Git tag
84+ # as the npm dist-tag unless it looks like a version tag such as `v1.2.3`.
85+ #
8686 # See https://docs.npmjs.com/adding-dist-tags-to-packages.
8787 #
88- # Default: `latest `
89- tag : latest
88+ # Default: `"" `
89+ tag : " "
9090
9191 # Whether to generate npm provenance for npmjs.org publishes.
9292 # Default: `true`
@@ -113,12 +113,15 @@ jobs:
113113| **`package-tarball-artifact-id`** | Artifact ID of the package tarball produced by CI. | **true** | **string** | - |
114114| **`registry-url`** | Registry URL used by npm publish. | **false** | **string** | `https://registry.npmjs.org` |
115115| **`access`** | Package access level passed to npm publish. Leave empty to use npm defaults. | **false** | **string** | `public` |
116- | **`tag`** | npm distribution tag for the published package. | **false** | **string** | `latest` |
116+ | **`tag`** | npm distribution tag for the published package. Leave empty to use npm defaults. | **false** | **string** | `""` |
117117| | Common values : | | | |
118118| | - `latest` - Default tag for stable releases | | | |
119119| | - `next` - Prerelease or beta versions | | | |
120120| | - `canary` - Canary/nightly builds | | | |
121121| | | | | |
122+ | | If omitted for a pushed Git tag, the workflow tries to reuse the Git tag as the | | | |
123+ | | npm dist-tag unless it looks like a version tag such as `v1.2.3`. | | | |
124+ | | | | | |
122125| | See <https://docs.npmjs.com/adding-dist-tags-to-packages>. | | | |
123126| **`provenance`** | Whether to generate npm provenance for npmjs.org publishes. | **false** | **boolean** | `true` |
124127| **`dry-run`** | Whether to run npm publish without publishing the package. | **false** | **boolean** | `false` |
@@ -131,11 +134,10 @@ jobs:
131134
132135# # Secrets
133136
134- | **Secret** | **Description** | **Required** |
135- | -------------------- | ---------------------------------------------- | ------------ |
136- | **`github-token`** | GitHub token to use for authentication. | **false** |
137- | | Defaults to `GITHUB_TOKEN` if not provided. | |
138- | **`registry-token`** | Authentication token for the package registry. | **false** |
137+ | **Secret** | **Description** | **Required** |
138+ | ------------------ | ------------------------------------------------------------------ | ------------ |
139+ | **`github-token`** | GitHub token to use when downloading the package tarball artifact. | **false** |
140+ | | Defaults to `GITHUB_TOKEN` if not provided. | |
139141
140142<!-- secrets:end -->
141143
@@ -173,8 +175,6 @@ jobs:
173175 contents: read
174176 packages: write
175177 id-token: write
176- secrets:
177- registry-token: ${{ secrets.NPM_TOKEN }}
178178 with:
179179 package-tarball-artifact-id: ${{ needs.ci.outputs.package-tarball-artifact-id }}
180180` ` `
0 commit comments