From f0d6b671bc41a63d885238ef1f5c9a86fcfcbcd5 Mon Sep 17 00:00:00 2001 From: skdhg <46562212+skdhg@users.noreply.github.com> Date: Mon, 23 Oct 2023 23:31:00 +0545 Subject: [PATCH] action --- .github/workflows/deploy.yml | 3 +-- package.json | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 14662d7..7011acd 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -9,10 +9,9 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: - node-version: 18 + node-version: 20 registry-url: https://registry.npmjs.org/ - run: npm install - - run: npm run build - run: npm publish --access public env: NODE_AUTH_TOKEN: ${{secrets.npm_token}} diff --git a/package.json b/package.json index 4ea724e..9611106 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ }, "scripts": { "build": "npm run build:node && npm run build:deno", + "prepublishOnly": "npm run build", "build:node": "tsup", "build:deno": "node scripts/deno.js", "format": "prettier --write **/*.{js,ts}"