From 68e71d8873a99e85f88733fe8feab063d2b2fb30 Mon Sep 17 00:00:00 2001 From: Andrei Date: Thu, 12 Sep 2024 12:49:04 +0200 Subject: [PATCH] updated: publish script --- .github/workflows/publish.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 62fa891..83d087e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -14,9 +14,17 @@ jobs: steps: - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 'lts' + registry-url: 'https://registry.npmjs.org' - name: Publish package to npmjs.com - run: npm publish + - run: npm ci + - run: npm run build + - run: npm publish --provenance --access public + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Publish package to jsr.io run: npx jsr publish