Skip to content

fix(CICD): test ncipollo/release-action@v1 #166

fix(CICD): test ncipollo/release-action@v1

fix(CICD): test ncipollo/release-action@v1 #166

Workflow file for this run

name: CICD
on:
push:
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
jobs:
semantic:
runs-on: ubuntu-latest
outputs:
new_release: ${{ steps.semantic.outputs.new_release_published }}
version: ${{ steps.semantic.outputs.new_release_version }}
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: [ubuntu-latest, windows-latest]
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install Node.js, NPM
uses: actions/setup-node@v4
with:
node-version: latest
- name: Package
run: |
jq '.version = "${{ needs.semantic.outputs.version }}"' package.json > temp && mv temp package.json
cat package.json
rm -rf node_modules package-lock.json
npm install
npm run package
shell: bash
- name: Create tag
run: |
git tag ${{ needs.semantic.outputs.version }}
git push origin ${{ needs.semantic.outputs.version }}
- name: Release
uses: ncipollo/release-action@v1
with:

Check failure on line 53 in .github/workflows/CICD.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/CICD.yaml

Invalid workflow file

You have an error in your yaml syntax on line 53
prerelease: if [[ ${{ needs.semantic.outputs.version }} == *"rc"* ]]; then true; else false; fi
artifacts: release/${{ needs.semantic.outputs.version }}/vease-${{ needs.semantic.outputs.version }}.zip
tag: ${{ needs.semantic.outputs.version }}
merge:
runs-on: ubuntu-latest
needs: [release]
if: github.ref == 'refs/heads/master'
steps:
- name: Check out Git repository
uses: actions/checkout@v4
- name: Merge master -> next
uses: devmasx/merge-branch@master
with:
type: now
from_branch: master
target_branch: next
github_token: ${{ secrets.TOKEN }}