diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5aaef6d..7f75de6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -658,4 +658,73 @@ jobs: FILES: 'test-file.json' EXPECTED_VERSION: '1.5.0' + test-pre-release: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + with: + path: "./" + - run: npm ci --prod + + - run: "git config --global user.email 'changelog@github.com'" + - run: "git config --global user.name 'Awesome Github action'" + - run: "git add . && git commit --allow-empty -m 'feat: Added fake file so version will be bumped'" + + - name: Generate changelog + id: changelog + uses: ./ + env: + ENV: 'dont-use-git' + EXPECTED_TAG: 'v1.4.6-rc.0' + with: + github-token: ${{ secrets.github_token }} + version-file: 'test-file.json' + pre-release: true + + - name: Show file + run: | + echo "$(