mirror of
https://github.com/theoludwig/eslint-config-conventions.git
synced 2026-01-17 23:15:13 +01:00
ci: trusted npm package publishing (OIDC)
Ref: https://docs.npmjs.com/trusted-publishers
This commit is contained in:
5
.github/workflows/release.yml
vendored
5
.github/workflows/release.yml
vendored
@@ -4,6 +4,10 @@ on:
|
||||
push:
|
||||
branches: [main, beta]
|
||||
|
||||
permissions:
|
||||
id-token: "write" # OIDC
|
||||
contents: "read"
|
||||
|
||||
jobs:
|
||||
release:
|
||||
runs-on: "ubuntu-latest"
|
||||
@@ -34,4 +38,3 @@ jobs:
|
||||
run: "node --run release"
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user