Skip to content

Commit 3477c94

Browse files
committed
chore: release flow using provenance
Signed-off-by: Matteo Collina <hello@matteocollina.com>
1 parent d3aafea commit 3477c94

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- main
7+
- v6.x
78
paths:
89
- package.json
910

@@ -57,18 +58,14 @@ jobs:
5758
- run: npm install -g npm@latest
5859
- run: npm install
5960
- name: Create NPM release
60-
run: npm publish --provenance --access public
61-
env:
62-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
61+
run: npm publish --provenance --access public --tag six
6362
- run: node scripts/generate-undici-types-package-json.js
64-
- run: npm publish --provenance
63+
- run: npm publish --provenance --tag six
6564
working-directory: './types'
66-
env:
67-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
6865
- name: Create GitHub release
6966
uses: actions/github-script@v7
7067
with:
7168
script: |
7269
const defaultBranch = "${{ github.event.repository.default_branch }}"
7370
const versionTag = "${{ needs.check-release-version.outputs.release-version }}"
74-
await require('./scripts/release').release({ github, context, defaultBranch, versionTag })
71+
await require('./scripts/release').release({ github, context, defaultBranch, versionTag })

0 commit comments

Comments
 (0)