Skip to content

Commit

Permalink
Merge pull request #1 from mailosaur/build-publish
Browse files Browse the repository at this point in the history
Ensure build pre-publish
  • Loading branch information
th-mailosaur authored Jun 26, 2024
2 parents 5cbced4 + 4048154 commit 145bbc5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
/.github
/src
/node_modules

.env
.DS_Store

tsconfig.json
tsup.config.ts
tsup.config.ts

.prettierrc

0 comments on commit 145bbc5

Please sign in to comment.