mirror of
https://github.com/tabler/tabler.git
synced 2026-08-26 21:04:25 +04:00
Use npm trusted publishing (OIDC) in the release workflow (#2907)
This commit is contained in:
@@ -16,9 +16,10 @@ jobs:
|
||||
name: Release
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write # to create release
|
||||
contents: write # to create release
|
||||
issues: write # to post issue comments
|
||||
pull-requests: write # to create pull request
|
||||
id-token: write # for npm trusted publishing (OIDC)
|
||||
steps:
|
||||
- name: Checkout Repo
|
||||
uses: actions/checkout@v7
|
||||
@@ -32,6 +33,9 @@ jobs:
|
||||
node-version-file: '.nvmrc'
|
||||
cache: 'pnpm'
|
||||
|
||||
- name: Update npm # trusted publishing requires npm >= 11.5.1
|
||||
run: npm install -g npm@latest
|
||||
|
||||
- name: Install Dependencies
|
||||
run: pnpm install
|
||||
|
||||
@@ -47,5 +51,3 @@ jobs:
|
||||
title: "chore: update versions"
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
Reference in New Issue
Block a user