try fix ci #151
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Typescript Api Client | |
on: | |
push: | |
branches: | |
- main | |
- master | |
jobs: | |
publish: | |
runs-on: self-hosted | |
if: contains(' | |
refs/heads/master | |
refs/heads/main' | |
, github.ref) | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "20" | |
- name: Install dependencies | |
run: npm install --prefix package | |
- name: Build | |
run: npm run build --prefix package | |
- name: Install release dependencies | |
run: | | |
npm install --no-save \ | |
--prefix package \ | |
@semantic-release/[email protected] \ | |
@semantic-release/[email protected] \ | |
conventional-changelog-eslint \ | |
- name: Release | |
run: npx semantic-release -e ./config/release.config.js | |
working-directory: ./package | |
env: | |
GITHUB_TOKEN: ${{ secrets.REPOS_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |