Skip to content

Commit 696fe43

Browse files
committed
Fix Trusted Publishing: move permissions to top level and update npm
1 parent 67a0ab1 commit 696fe43

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/publish.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@ on:
55
tags:
66
- 'v*'
77

8+
permissions:
9+
id-token: write
10+
contents: read
11+
812
jobs:
913
publish:
1014
runs-on: ubuntu-latest
1115
environment: npm
12-
permissions:
13-
contents: read
14-
id-token: write
1516
steps:
1617
- uses: actions/checkout@v4
1718

@@ -20,6 +21,9 @@ jobs:
2021
node-version: '20'
2122
registry-url: 'https://registry.npmjs.org'
2223

24+
- name: Update npm
25+
run: npm install -g npm@latest
26+
2327
- name: Install dependencies
2428
run: npm ci
2529

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "next-i18n-tiny",
3-
"version": "0.1.2",
3+
"version": "0.1.3",
44
"type": "module",
55
"description": "Tiny, type-safe i18n library for Next.js with automatic type inference and zero dependencies",
66
"keywords": [

0 commit comments

Comments
 (0)