diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml index 48f47c04d..aa1898704 100644 --- a/.github/workflows/auto-release.yml +++ b/.github/workflows/auto-release.yml @@ -25,7 +25,7 @@ jobs: with: github-token: ${{ secrets.GITHUB_TOKEN }} result-encoding: string - script: + script: | const package = require(`${process.env.GITHUB_WORKSPACE}/attractions/package.json`); return `v${package.version}`; @@ -35,7 +35,7 @@ jobs: with: github-token: ${{ secrets.GITHUB_TOKEN }} result-encoding: string - script: + script: | const changelog = require('fs').readFileSync('CHANGELOG.md', { encoding: 'utf-8' }).split('\n'); const start = changelog.findIndex(line => line.startsWith('## ')); const end = changelog.findIndex((line, index) => line.startsWith('## ') && index > start);