Skip to content

[FIX] config: fix release flow #5690

[FIX] config: fix release flow

[FIX] config: fix release flow #5690

Workflow file for this run

name: Release Workflow
on:
push:
# Match LTS, saas releases >= 10 and master
branches: ['[1-9][0-9].[0-9]', 'saas-[1-9][0-9].[0-9]', 'master']
jobs:
release:
if: contains(github.event.head_commit.message, '[REL]')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
registry-url: 'https://registry.npmjs.org'
- name: Parse
id: parse
# should work with le latest stable node
# parse-message will fail on invalid commit title/body
run: |
npm i @actions/core @actions/github --no-save &&\
node tools/parse_message.cjs
# generate all builds
- name: Build
run: npm ci && npm run dist
- name: Release
uses: ncipollo/release-action@v1.12.0
with:
tag: ${{ steps.parse.outputs.version }}
body: ${{ steps.parse.outputs.body }}
artifacts: "./dist/*.*"
<<<<<<< a962b505273e81729189d63af578f475d3fcfec7

Check failure on line 31 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yml

Invalid workflow file

You have an error in your yaml syntax on line 31
makeLatest: true
prerelease: ${{ fromJSON(steps.parse.outputs.data).prerelease }}
||||||| 5a46aed4249573c83b961a0f730385c2117c53ce
makeLatest: false
prerelease: ${{ fromJSON(steps.parse.outputs.data).prerelease }}
=======
makeLatest: false
prerelease: ${{ steps.parse.outputs.prerelease }}
>>>>>>> c1a61939553fd1406acbed83518a8bef4f809329
- name: Publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}