Skip to content

Commit 2cf87d6

Browse files
committed
fix: update publishing workflow to use OIDC
1 parent 3588c19 commit 2cf87d6

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/npm-publish.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
release:
88
types: [created]
99

10+
permissions:
11+
id-token: write # Required for OIDC
12+
contents: read
13+
1014
jobs:
1115
build:
1216
runs-on: ubuntu-latest
@@ -30,5 +34,3 @@ jobs:
3034
registry-url: https://registry.npmjs.org/
3135
- run: npm install
3236
- run: npm publish
33-
env:
34-
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "yaml-sort",
3-
"version": "2.1.0",
3+
"version": "3.0.0",
44
"description": "Sort YAML files alphabetically",
55
"main": "yaml-sort.js",
66
"scripts": {

0 commit comments

Comments
 (0)