fix(CICD): test activate env in linux #59
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: CICD | |
on: | |
push: | |
env: | |
GITHUB_TOKEN: ${{ secrets.TOKEN }} | |
jobs: | |
semantic: | |
runs-on: ubuntu-latest | |
outputs: | |
new_release: ${{ steps.semantic.outputs.new_release_published }} | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v4 | |
- name: Semantic Release | |
uses: cycjimmy/semantic-release-action@v4 | |
id: semantic | |
release: | |
runs-on: ${{ matrix.os }} | |
needs: [semantic] | |
if: needs.semantic.outputs.new_release == 'true' | |
strategy: | |
matrix: | |
os: [windows-latest, ubuntu-latest] | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v4 | |
- name: Install Node.js, NPM and Yarn | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Publish version | |
run: | | |
npm install | |
npm run package | |
npm run make | |
if [[ "$github.ref == 'refs/heads/next'" ]] then | |
npm run publish --prerelease | |
else | |
npm run publish | |
fi | |
shell: bash |