Files
status/.github/workflows/dependencies.yml
T
2020-11-25 00:36:51 +00:00

51 lines
1.8 KiB
YAML

# Do not edit this file directly!
# ===============================
#
# Your changes will be overwritten when the template updates (weekly)
# Instead, change your .upptimerc.yml configuration: https://upptime.js.org/docs
# Or propose changes to this template: https://github.com/upptime/upptime
name: Dependencies CI
on:
schedule:
- cron: "0 0 * * 1"
workflow_dispatch:
jobs:
release:
name: Build and deploy site
runs-on: ubuntu-18.04
if: "github.repository_owner == 'upptime' && github.event.repository.name == 'upptime'"
steps:
- name: Checkout
uses: actions/checkout@v2.3.3
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.GH_PAT }}
- name: Setup Node.js
uses: actions/setup-node@v1.4.4
with:
node-version: 14
- name: Update dependencies
uses: upptime/uptime-monitor@v1.17.3
with:
command: "update-dependencies"
env:
GH_PAT: ${{ secrets.GH_PAT }}
- name: Add .gitignore
run: echo "node_modules\nrelease.config.js\npackage.json\npackage-lock.json\n.gitignore" > .gitignore
- name: Initialize npm package
run: 'echo "{ \"name\": \"@upptime/upptime\" }" > package.json'
- name: Install @koj-co/config and semantic-release
run: npm i @koj/config semantic-release
- name: Add Semantic Release config
run: echo 'module.exports = require("@koj/config").releaseMaster;' > release.config.js
- name: Release
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GIT_AUTHOR_NAME: "Upptime Bot"
GIT_AUTHOR_EMAIL: "upptime@koj.co"
GIT_COMMITTER_NAME: "Upptime Bot"
GIT_COMMITTER_EMAIL: "upptime@koj.co"