diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6502636..bfd6579 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,9 +27,6 @@ jobs: registry-url: 'https://registry.npmjs.org' cache: npm - - name: Upgrade npm to a version that supports Trusted Publishing - run: npm install -g npm@latest - - name: Install dependencies run: npm ci @@ -41,9 +38,11 @@ jobs: - name: Publish CLI working-directory: packages/cli + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} run: | if [ "${{ github.event_name }}" = "workflow_dispatch" ] && [ "${{ inputs.dry_run }}" = "true" ]; then - npm publish --dry-run --provenance --access public + npm publish --dry-run else - npm publish --provenance --access public + npm publish fi