diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index deb1081..626d89e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -15,9 +15,10 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: + node-version: "22.x" registry-url: "https://registry.npmjs.org" - run: npm install - - run: npm run publish + - run: npm run release - run: npm publish --access public env: NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} \ No newline at end of file diff --git a/package.json b/package.json index 1f6efa6..911dc90 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ ], "scripts": { "lint": "eslint src/index.ts", - "publish": "tsc" + "release": "tsc" }, "files": [ "dist"