Skip to content

Commit f550204

Browse files
authored
Use depot runner (#6)
1 parent 2aef400 commit f550204

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/publish.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ permissions:
1313
jobs:
1414
publish:
1515
name: Publish to NPM
16-
runs-on: ubuntu-latest
16+
runs-on: "depot-ubuntu-24.04-small"
1717
steps:
1818
- uses: actions/checkout@v6
1919
- uses: "pnpm/action-setup@v4"
@@ -27,7 +27,9 @@ jobs:
2727
# Ensure npm 11.5.1 or later is installed;
2828
# this is required for publishing using OIDC authn
2929
- name: "Update npm"
30-
run: "npm install -g npm@latest"
30+
# NOTE: sudo is needed here because the original npm is installed
31+
# with sudo on npm images.
32+
run: "sudo npm install -g npm@latest"
3133
- name: "Install dependencies"
3234
run: "pnpm install"
3335
# Set the version in package.json to match the tag

0 commit comments

Comments
 (0)