Skip to content

Commit

Permalink
fix: build before publish
Browse files Browse the repository at this point in the history
  • Loading branch information
lbguilherme committed Jan 19, 2021
1 parent 45d9223 commit 4265ee5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ jobs:
- run: |
npm install -g json && json -I -f package.json -e '
this.version = "${{ github.ref }}".replace("refs/tags/", "");
this.main = "dist/src/index.js";
this.types = "dist/src/index.d.ts";
'
- run: npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
3 changes: 3 additions & 0 deletions .github/workflows/release_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ jobs:
- run: |
npm install -g json && json -I -f package.json -e '
this.version = "0.0.0-dev.'$(date -u +'%Y%m%d%H%M%S')'";
this.main = "dist/src/index.js";
this.types = "dist/src/index.d.ts";
'
- run: npm run build
- run: npm publish --tag dev
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,4 @@ typings/
.next

package-lock.json
dist

0 comments on commit 4265ee5

Please sign in to comment.