diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e8e0b9a..082ab0e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -16,9 +16,10 @@ jobs: node-version: 17 registry-url: 'https://registry.npmjs.org' - run: npm install + - run: npm run build - run: git config user.email "41898282+github-actions[bot]@users.noreply.github.com" && git config user.name "github-actions[bot]" - run: npm version ${GITHUB_REF##*/} - - run: npm run build + - run: git add . - run: npm publish env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}