Skip to content

Commit 4e647a8

Browse files
committed
chore(ci): remove old npm auth
Signed-off-by: Matt Roberts <code@rbrts.uk>
1 parent 07b1ac6 commit 4e647a8

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ jobs:
2424
with:
2525
node-version: '20'
2626
registry-url: 'https://registry.npmjs.org'
27+
cache: 'npm'
2728

2829
# Ensure npm 11.5.1 or later for trusted publishing
2930
- run: npm install -g npm@latest
3031

31-
3232
- run: npm ci
3333
- run: npm run build --if-present
3434

@@ -39,13 +39,12 @@ jobs:
3939
4040
- name: build and publish
4141
run: |
42-
npm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }}
4342
node ./scripts/bump_version.js ${{ github.event.release.tag_name }}
4443
npm version --workspaces --include-workspace-root --no-git-tag-version --yes --exact ${{ github.event.release.tag_name }}
45-
npm publish --workspaces --access public ${{ steps.tag.outputs.tag }} 2>&1
44+
npm publish --workspaces --access public --provenance ${{ steps.tag.outputs.tag }} 2>&1
4645
4746
- name: Create PR to increment version
48-
uses: peter-evans/create-pull-request@v3
47+
uses: peter-evans/create-pull-request@v7
4948
with:
5049
base: main
5150
commit-message: 'chore(actions): publish ${{ github.event.release.tag_name }} to npm'

0 commit comments

Comments
 (0)