Skip to content

Commit

Permalink
Merge pull request #133 from cubos/fix/build-order
Browse files Browse the repository at this point in the history
fix: build order
  • Loading branch information
lbguilherme authored Aug 16, 2022
2 parents d15cfbc + eda1a22 commit 85c8d5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ jobs:
node-version: 16
registry-url: https://registry.npmjs.org
- run: npm install
- run: npm run build
- run: |
npm install -g json && json -I -f package.json -e '
this.version = "${{ github.ref }}".replace("refs/tags/", "");
this.exports = "./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 }}
2 changes: 1 addition & 1 deletion .github/workflows/release_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ jobs:
node-version: 16
registry-url: https://registry.npmjs.org
- run: npm install
- run: npm run build
- 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.exports = "./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 }}

0 comments on commit 85c8d5d

Please sign in to comment.