Skip to content

Commit 3a98b8d

Browse files
committed
npx maybe?
1 parent 97e2267 commit 3a98b8d

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/publish.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@ jobs:
2525
node-version-file: .nvmrc
2626
registry-url: 'https://registry.npmjs.org' # required for trusted publishing
2727

28-
- run: |
29-
npm i -g npm@latest
30-
npm --version
3128
- run: npm i
32-
- run: npm run deploy
29+
- name: Build
30+
run: npm run build
31+
32+
# 🔑 Use npm@latest directly for publish
33+
- name: Publish (trusted publishing)
34+
run: npx -y npm@latest publish --provenance --access public --loglevel verbose

0 commit comments

Comments
 (0)