diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 9214e8a..3d7eff3 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -11,6 +11,10 @@ permissions: jobs: publish: runs-on: ubuntu-latest + # NPM_TOKEN is an environment secret of "release", which only v* tags may + # deploy to, and only admins may create tags. A workflow pushed on a + # branch cannot read it. + environment: release steps: - name: Checkout uses: actions/checkout@v4