Skip to content

Commit

Permalink
fix: fix release
Browse files Browse the repository at this point in the history
  • Loading branch information
fabian4 committed Feb 14, 2022
1 parent 333289b commit 9a9d195
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:

- run: yarn coverage

- run: yarn build

- name: Codecov
uses: codecov/codecov-action@v1
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

- name: Run semantic-release
if: github.event_name == 'push' && github.repository == 'casdoor/casdoor-js-sdk'
run: npx semantic-release
run: yarn install && yarn semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
5 changes: 3 additions & 2 deletions .releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/npm"
"@semantic-release/npm",
"@semantic-release/github"
]
}
}
14 changes: 12 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,15 @@
"module": "lib/esm/index.js",
"license": "Apache-2.0",
"scripts": {
"prepack": "run-s build",
"postpack": "run-s clean",
"build": "run-s clean && run-p build:*",
"build:cjs": "tsc -p tsconfig.cjs.json",
"build:esm": "tsc -p tsconfig.esm.json",
"clean": "rimraf lib",
"test": "jest",
"coverage": "jest --coverage"
"coverage": "jest --coverage",
"semantic-release": "semantic-release"
},
"jest": {
"maxConcurrency": 1,
Expand All @@ -33,12 +36,19 @@
]
},
"devDependencies": {
"@semantic-release/changelog": "^5.0.1",
"@semantic-release/commit-analyzer": "^8.0.1",
"@semantic-release/git": "^9.0.0",
"@semantic-release/github": "^7.2.3",
"@semantic-release/npm": "^7.1.3",
"@semantic-release/release-notes-generator": "^9.0.3",
"@types/jest": "^27.0.2",
"npm-run-all": "^4.1.5",
"typescript": "^4.5.5",
"rimraf": "^3.0.2",
"jest": "^27.2.1",
"ts-jest": "^27.0.5"
"ts-jest": "^27.0.5",
"semantic-release": "^17.4.4"
},
"files": [
"lib"
Expand Down

0 comments on commit 9a9d195

Please sign in to comment.