Skip to content

Commit 217ebd5

Browse files
committed
feat(ci.yaml): add npm publish dry-run step
This commit adds a new step in the GitHub Actions workflow for performing a dry-run of npm publish. This is to ensure that the npm package is ready for publishing. The Node.js version used is 20.x. The deno.lock file has also been updated to include a new dependency.
1 parent 1b5e902 commit 217ebd5

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66

77
env:
88
DENO_VERSION: 1.x
9+
NODE_VERSION: 20.x
910

1011
permissions:
1112
contents: read
@@ -44,6 +45,26 @@ jobs:
4445
deno-version: ${{ env.DENO_VERSION }}
4546
- run: deno publish --dry-run
4647

48+
npm-publish-dry-run:
49+
runs-on: ubuntu-latest
50+
steps:
51+
- uses: actions/checkout@v4
52+
with:
53+
fetch-depth: 0
54+
- uses: denoland/setup-deno@v1
55+
with:
56+
deno-version: ${{ env.DENO_VERSION }}
57+
- uses: oven-sh/setup-bun@v1
58+
with:
59+
bun-version: latest
60+
- uses: actions/setup-node@v4
61+
with:
62+
node-version: ${{ env.NODE_VERSION }}
63+
registry-url: "https://registry.npmjs.org"
64+
- run: deno task build-npm
65+
- run: |
66+
cd npm
67+
npm publish --dry-run
4768
4869
action-timeline:
4970
needs:

0 commit comments

Comments
 (0)