Skip to content

deps: update dependency @types/node to v18.19.33 #493

deps: update dependency @types/node to v18.19.33

deps: update dependency @types/node to v18.19.33 #493

Workflow file for this run

name: Continuous Integration
on:
push:
branches:
- main
pull_request:
env:
CI: 1
ARTIFACT_DIR: ./artifacts
jobs:
commit-watch:
name: Run Commit Watch
runs-on: ubuntu-20.04
if: "github.event_name == 'pull_request' && !contains(github.event.head_commit.message, '[skip ci]')"
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- uses: ./.github/actions/setup-env
- name: Run Commit Watch
env:
COMMIT_WATCH_OUTPUT_DIR: ${{ env.ARTIFACT_DIR }}/
COMMITWATCH_GITHUB_TOKEN: ${{ secrets.TOPHAT_BOT_GH_TOKEN }}
CI_REPO_OWNER: ${{ github.repository_owner }}
CI_REPO_NAME: ${{ github.event.repository.name }}
CI_COMMIT_SHA: ${{ github.event.pull_request.head.sha }}
CI_BASE_BRANCH: origin/${{ github.base_ref }}
run: yarn dlx commit-watch
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: commit-watch-artifacts
path: ${{ env.ARTIFACT_DIR }}
tests:
name: Lint & Tests
runs-on: ubuntu-20.04
if: "!contains(github.event.head_commit.message, '[skip ci]')"
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: ./.github/actions/setup-env
- name: Build
run: yarn build
- name: Linting
run: yarn lint:ci
- name: Tests
run: yarn test:ci
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: report-artifacts
path: ${{ env.ARTIFACT_DIR }}
publish_preview:
name: Publish Preview
runs-on: ubuntu-20.04
if: "github.event_name == 'pull_request' && !contains(github.event.head_commit.message, '[skip ci]')"
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: ./.github/actions/setup-env
- name: Run Monodeploy in Dry Run Mode
id: run-monodeploy
env:
PREVIEW: 1
run: |
echo "<!-- MONODEPLOY:BELOW -->" > ${{ env.ARTIFACT_DIR }}/CHANGELOG.md
yarn ts-node --transpileOnly $(yarn bin monodeploy) --dry-run \
--config-file monodeploy.config.ts \
--log-level 0 \
--git-base-branch origin/${{ github.base_ref }} \
--changelog-filename ${{ env.ARTIFACT_DIR }}/CHANGELOG.md \
--force-write-change-files
changelog_body=$(cat ${{ env.ARTIFACT_DIR }}/CHANGELOG.md)
changelog_body="${changelog_body//'%'/'%25'}"
changelog_body="${changelog_body//$'\n'/'%0A'}"
changelog_body="${changelog_body//$'\r'/'%0D'}"
echo ::set-output name=changelog::$changelog_body
- name: Check for Changelog Comment
uses: peter-evans/find-comment@v2
id: found-comment
if: github.event_name == 'pull_request'
with:
token: ${{ secrets.TOPHAT_BOT_GH_TOKEN }}
issue-number: ${{ github.event.pull_request.number }}
comment-author: 'tophat-opensource-bot'
body-includes: <!-- MONODEPLOY_CHANGELOG_PREVIEW -->
- name: Post Changelog to PR
uses: peter-evans/create-or-update-comment@v3
if: github.event_name == 'pull_request'
with:
token: ${{ secrets.TOPHAT_BOT_GH_TOKEN }}
comment-id: ${{ steps.found-comment.outputs.comment-id }}
issue-number: ${{ github.event.pull_request.number }}
edit-mode: replace
body: |
<!-- MONODEPLOY_CHANGELOG_PREVIEW -->
# Monodeploy Publish Preview
This Pull Request introduces the following changes:
${{ steps.run-monodeploy.outputs.changelog }}
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: build-artifacts
path: ${{ env.ARTIFACT_DIR }}