Skip to content

Commit

Permalink
Merge pull request #284 from icelam/update-ci-image
Browse files Browse the repository at this point in the history
ci: update ci to use latest ubuntu image
  • Loading branch information
icelam authored Oct 30, 2021
2 parents e2ec16f + de61b73 commit 22d2970
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
jobs:
test:
name: Test
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x, 14.x, 16.x]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rebase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
rebase:
name: Rebase
if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/rebase')
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
- name: Checkout the latest code
uses: actions/checkout@main
Expand Down
18 changes: 15 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,31 @@ on:
jobs:
release:
name: Create release
runs-on: ubuntu-18.04
runs-on: ubuntu-latest

steps:
- name: Checkout repo
uses: actions/checkout@main
- name: Setup Node.js version
uses: actions/setup-node@main
with:
node-version: '12.16.1'
node-version: 14.x

- name: Generate release body
run: |
yarn extract-latest-change-log
npx rexreplace "(#+ \[\d+\.\d+\.\d+].*?)#+ \[?\d+\.\d+\.\d+]?" "_" -s -M -G -m -o "CHANGELOG.md" > RELEASE_BODY.md
result=$(cat RELEASE_BODY.md)
if [[ $? != 0 ]]; then
echo "Command failed."
exit 1;
elif [[ $result ]]; then
echo "Release body generated."
else
echo "This is the first release, using different command to generate release body."
npx rexreplace "(#+ \[?\d+\.\d+\.\d+]?.*)" "_" -s -M -G -m -o "CHANGELOG.md" > RELEASE_BODY.md
fi
- name: Create release
id: create-release
uses: actions/create-release@v1
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"prepare": "husky install && install-peers",
"first-release": "npx standard-version --commit-all --tag-prefix v --first-release",
"release": "npx standard-version --commit-all --tag-prefix v",
"extract-latest-change-log": "node scripts/extractLatestChangeLog.js",
"test": "jest --verbose --watchAll --config ./jest.config.js",
"test:ci": "yarn test --ci --watchAll=false --runInBand --detectOpenHandles"
},
Expand Down
16 changes: 0 additions & 16 deletions scripts/extractLatestChangeLog.js

This file was deleted.

0 comments on commit 22d2970

Please sign in to comment.