Skip to content

Commit

Permalink
fix: run semantic release with dist folder (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
thorwebdev authored Feb 15, 2022
1 parent 6997bb8 commit 909ce53
Show file tree
Hide file tree
Showing 2 changed files with 4 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 @@ -28,7 +28,7 @@ jobs:
npm run build
- name: Create a release
run: npx semantic-release@^18.0.0
run: npm run publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
"install:nextjs": "npm i --prefix=examples/nextjs --no-package-lock",
"install:examples": "npm run install:nextjs",
"build": "npm run clean && tsc -p tsconfig.build.json",
"semantic-release": "semantic-release",
"publish": "cd dist && npm run semantic-release",
"build:nextjs": "npm run build --prefix=examples/nextjs",
"build:examples": "npm run build:nextjs",
"dev:nextjs": "npm run dev --prefix=examples/nextjs"
Expand Down Expand Up @@ -64,7 +66,7 @@
"react": "^17.0.2",
"react-dom": "^17.0.2",
"rimraf": "^3.0.2",
"semantic-release": "^19.0.2",
"semantic-release": "^18.0.0",
"semantic-release-plugin-update-version-in-files": "^1.1.0",
"typedoc": "^0.22.11",
"typescript": "^4.1.3"
Expand Down

0 comments on commit 909ce53

Please sign in to comment.