Skip to content

Commit 85c8d5d

Browse files
authored
Merge pull request #133 from cubos/fix/build-order
fix: build order
2 parents d15cfbc + eda1a22 commit 85c8d5d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ jobs:
1212
node-version: 16
1313
registry-url: https://registry.npmjs.org
1414
- run: npm install
15+
- run: npm run build
1516
- run: |
1617
npm install -g json && json -I -f package.json -e '
1718
this.version = "${{ github.ref }}".replace("refs/tags/", "");
1819
this.exports = "./dist/src/index.js";
1920
this.types = "dist/src/index.d.ts";
2021
'
21-
- run: npm run build
2222
- run: npm publish
2323
env:
2424
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

.github/workflows/release_dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ jobs:
1313
node-version: 16
1414
registry-url: https://registry.npmjs.org
1515
- run: npm install
16+
- run: npm run build
1617
- run: |
1718
npm install -g json && json -I -f package.json -e '
1819
this.version = "0.0.0-dev.'$(date -u +'%Y%m%d%H%M%S')'";
1920
this.exports = "./dist/src/index.js";
2021
this.types = "dist/src/index.d.ts";
2122
'
22-
- run: npm run build
2323
- run: npm publish --tag dev
2424
env:
2525
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

0 commit comments

Comments
 (0)