Skip to content

Commit 6ff2ec6

Browse files
committed
chore(ci): use trusted publishing
1 parent 5c24ad7 commit 6ff2ec6

1 file changed

Lines changed: 6 additions & 9 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,17 @@ jobs:
66
release:
77
runs-on: ubuntu-latest
88
if: github.event_name == 'push' && startswith(github.ref, 'refs/tags/v') && github.repository_owner == 'vuetifyjs'
9+
permissions:
10+
contents: write
11+
id-token: write
912
steps:
1013
- uses: actions/checkout@v4
1114
with:
1215
fetch-depth: 0
13-
- uses: pnpm/action-setup@v4
14-
- uses: actions/setup-node@v4
15-
with:
16-
node-version-file: .nvmrc
17-
- run: pnpm install --frozen-lockfile
16+
- uses: vuetifyjs/setup-action@master
1817
- run: pnpm build
19-
- run: npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN:?}
20-
env:
21-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
18+
- run: npm install -g npm@latest
2219
- run: npm publish
2320
- run: pnpm conventional-github-releaser -p vuetify
2421
env:
25-
CONVENTIONAL_GITHUB_RELEASER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22+
CONVENTIONAL_GITHUB_RELEASER_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)