- adjust dist check
- fix import in test
This commit is contained in:
@@ -32,21 +32,18 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: 16.x
|
node-version: 16.x
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Build PR-Collector
|
||||||
run: |
|
run: |
|
||||||
cd pr-collector
|
cd pr-collector
|
||||||
npm ci
|
npm ci
|
||||||
|
|
||||||
cd ..
|
|
||||||
npm ci
|
|
||||||
|
|
||||||
- name: Rebuild the dist/ directory
|
|
||||||
run: |
|
|
||||||
cd pr-collector
|
|
||||||
npm run build
|
npm run build
|
||||||
npm run package
|
npm run package
|
||||||
|
|
||||||
cd ..
|
- name: Build Action
|
||||||
|
run: |
|
||||||
|
cd pr-collector
|
||||||
|
|
||||||
|
npm ci
|
||||||
npm run build
|
npm run build
|
||||||
npm run package
|
npm run package
|
||||||
|
|
||||||
@@ -54,7 +51,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
if [ "$(git diff --ignore-space-at-eol dist/ | wc -l)" -gt "0" ]; then
|
if [ "$(git diff --ignore-space-at-eol dist/ | wc -l)" -gt "0" ]; then
|
||||||
echo "Detected uncommitted changes after build. See status below:"
|
echo "Detected uncommitted changes after build. See status below:"
|
||||||
git diff
|
git diff -a
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
id: diff
|
id: diff
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import {mergeConfiguration, resolveConfiguration} from '../src/utils'
|
import {mergeConfiguration, resolveConfiguration} from '../src/utils'
|
||||||
import {pullData} from '../src/releaseNotesBuilder'
|
|
||||||
import {Octokit} from '@octokit/rest'
|
import {Octokit} from '@octokit/rest'
|
||||||
import {buildChangelog} from '../src/transform'
|
import {buildChangelog} from '../src/transform'
|
||||||
|
import { pullData } from 'github-pr-collector'
|
||||||
|
|
||||||
jest.setTimeout(180000)
|
jest.setTimeout(180000)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user