Skip to content

Commit 2aefada

Browse files
committed
chore: release flow using provenance
Signed-off-by: Matteo Collina <[email protected]>
1 parent 5086b56 commit 2aefada

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,18 +57,14 @@ jobs:
5757
- run: npm install -g npm@latest
5858
- run: npm install
5959
- name: Create NPM release
60-
run: npm publish --provenance --access public
61-
env:
62-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
60+
run: npm publish --provenance --access public --tag six
6361
- run: node scripts/generate-undici-types-package-json.js
64-
- run: npm publish --provenance
62+
- run: npm publish --provenance --tag six
6563
working-directory: './types'
66-
env:
67-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
6864
- name: Create GitHub release
6965
uses: actions/github-script@v7
7066
with:
7167
script: |
7268
const defaultBranch = "${{ github.event.repository.default_branch }}"
7369
const versionTag = "${{ needs.check-release-version.outputs.release-version }}"
74-
await require('./scripts/release').release({ github, context, defaultBranch, versionTag })
70+
await require('./scripts/release').release({ github, context, defaultBranch, versionTag })

0 commit comments

Comments
 (0)