Skip to content

Commit ac4613d

Browse files
committed
set up trusted publishing
1 parent de4b85f commit ac4613d

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

.github/workflows/publish-lua-types.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,21 @@ on:
44
push:
55
tags: 'dota-lua-types@*'
66

7+
permissions:
8+
id-token: write # Required for trusted publishing
9+
contents: read
10+
711
jobs:
812
build:
913
runs-on: ubuntu-latest
1014
steps:
1115
- uses: actions/checkout@v2
1216
- uses: actions/setup-node@v1
1317
with:
14-
node-version: '16.x'
18+
node-version: '24.x'
1519
registry-url: 'https://registry.npmjs.org'
1620
scope: '@moddota'
1721
- run: npm ci
1822
- run: npm run build
1923
- run: npm publish
2024
working-directory: packages/dota-lua-types
21-
env:
22-
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTOMATION_TOKEN }}

.github/workflows/publish-panorama-types.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,21 @@ on:
44
push:
55
tags: 'panorama-types@*'
66

7+
permissions:
8+
id-token: write # Required for trusted publishing
9+
contents: read
10+
711
jobs:
812
build:
913
runs-on: ubuntu-latest
1014
steps:
1115
- uses: actions/checkout@v2
1216
- uses: actions/setup-node@v1
1317
with:
14-
node-version: '16.x'
18+
node-version: '24.x'
1519
registry-url: 'https://registry.npmjs.org'
1620
scope: '@moddota'
1721
- run: npm ci
1822
- run: npm run build
1923
- run: npm publish
2024
working-directory: packages/panorama-types
21-
env:
22-
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTOMATION_TOKEN }}

0 commit comments

Comments
 (0)