Skip to content

Commit

Permalink
Document NPM_TOKEN (#1484)
Browse files Browse the repository at this point in the history
  • Loading branch information
ddbeck committed Jul 22, 2024
1 parent 0b959d2 commit 284eff8
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
!GOVERNANCE.md
!eslint.config.js

!/docs/publishing.md

!/features/*.yml
/features/*.yml.dist

Expand Down
23 changes: 23 additions & 0 deletions docs/publishing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Publishing

## `@next` releases

The [`publish_next_` GitHub Actions workflows](https://github.com/web-platform-dx/web-features/tree/main/.github/workflows) automatically publish pre-releases on push to the main branch using the `next` [npm dist tag](https://docs.npmjs.com/adding-dist-tags-to-packages).
You can install these prereleases using a command such as `npm install web-features@next`.

## Secrets

> [!NOTE]
> This information is for [project owners](../GOVERNANCE.md#roles-and-responsibilities).
Publishing requires the `NPM_TOKEN` repository secret (set via _Settings__Secrets and variables__Actions_).
If you're replacing this token, then use the following settings:

| Setting | Value |
| -------------------------------- | ---------------------------------------------------------------------------------------------------------- |
| Token type | _Granular Access Token_ |
| Expiration | The first day of the next quarter (1 January, 1 April, 1 July, or 1 October) or the first weekday after it |
| Packages and scopes permsissions | _Read and write_ |
| Select packages | _Only select packages and scopes_ |
| Select packages and scopes | `compute-baseline` and `web-features` |
| Organizations | _No access_ |

0 comments on commit 284eff8

Please # to comment.