From b57d4df85ddf20f15d57d321efe2bd0ada963374 Mon Sep 17 00:00:00 2001 From: Dong Nguyen Date: Sun, 23 Jun 2024 13:36:01 +0700 Subject: [PATCH] Fix npm build step --- .github/workflows/publish.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e1cef89..591c5a9 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,4 +1,4 @@ -name: Publish +name: publish on: push: @@ -14,12 +14,15 @@ jobs: steps: - uses: actions/checkout@v4 - run: npx jsr publish + - uses: denoland/setup-deno@v1 + with: + deno-version: 1.x + - name: npm build + run: deno task build - uses: actions/setup-node@v4 with: node-version: '20.x' registry-url: 'https://registry.npmjs.org' - - name: npm build - run: deno task build - name: npm publish env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}