diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 90e1031..91782a0 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -16,10 +16,13 @@ jobs: with: node-version: ${{ vars.NODE_VERSION }} registry-url: https://registry.npmjs.org/ - - name: version + - name: Version run: | npm --no-git-tag-version --allow-same-version version `git describe --abbrev=0 --tags` - - run: npm publish + - name: Build + run: npm i && npm run build + - name: Publish + run: npm publish env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Notify on failure diff --git a/.npmignore b/.npmignore index b7aecb8..d9c82cb 100644 --- a/.npmignore +++ b/.npmignore @@ -1,3 +1,4 @@ +/.github /src /node_modules @@ -5,4 +6,6 @@ .DS_Store tsconfig.json -tsup.config.ts \ No newline at end of file +tsup.config.ts + +.prettierrc