Skip to content

Commit 79101f6

Browse files
committed
Publish
1 parent ae62e5b commit 79101f6

1 file changed

Lines changed: 11 additions & 12 deletions

File tree

.github/workflows/publish.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish
1+
name: Publish Package
22

33
on:
44
workflow_dispatch:
@@ -8,30 +8,29 @@ on:
88
required: false
99

1010
permissions:
11-
id-token: write # Required for OIDC
11+
id-token: write # Required for OIDC
1212
contents: read
1313

1414
jobs:
1515
publish:
1616
runs-on: ubuntu-latest
17-
1817
steps:
19-
# Checkout repository
2018
- uses: actions/checkout@v4
19+
20+
# Setup Deno
21+
- uses: denoland/setup-deno@v2
2122
with:
22-
ref: main
23+
deno-version: v2.5
2324

24-
# Setup Node.js with OIDC Trusted Publishing
25+
# Setup Node
2526
- uses: actions/setup-node@v4
2627
with:
2728
node-version: '20'
2829
registry-url: 'https://registry.npmjs.org'
2930

30-
# Setup Deno
31-
- uses: denoland/setup-deno@v2
32-
with:
33-
deno-version: v2.5
31+
# Ensure npm 11.5.1 or later is installed
32+
- name: Update npm
33+
run: npm install -g npm@latest
3434

35-
# Publish
36-
- name: Publish
35+
- name: whoami
3736
run: npm whoami

0 commit comments

Comments
 (0)