chore(deps): lock file maintenance #735
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'Continuous Integration' | |
on: push | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 16 | |
- name: Cache npm dependencies | |
uses: actions/cache@v2 | |
env: | |
cache-name: cache-node-modules | |
with: | |
# npm cache files are stored in `~/.npm` on Linux/macOS | |
path: ~/.npm | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- name: Install dependencies | |
run: npm install | |
- name: Build | |
run: npm run all | |
- name: Run action | |
uses: ./ | |
with: | |
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | |
# microsoft_teams_webhook: ${{ secrets.MICROSOFT_TEAMS_WEBHOOK }} | |
# slack_webhook: ${{ secrets.SLACK_WEBHOOK }} | |
# count: 20 | |
# pager_duty_integration_key: ${{ secrets.PAGER_DUTY_INTEGRATION_KEY }} | |
# zenduty_api_key: ${{ secrets.ZENDUTY_API_KEY }} | |
# zenduty_service_id: ${{ secrets.ZENDUTY_SERVICE_ID }} | |
# zenduty_escalation_policy_id: ${{ secrets.ZENDUTY_ESCALATION_POLICY_ID }} | |
# email_from: ${{ secrets.EMAIL_FROM }} | |
# email_list: ${{ secrets.EMAIL_BCC_LIST }} | |
# email_transport_smtp_user: ${{ secrets.EMAIL_TRANSPORT_SMTP_USER }} | |
# email_transport_smtp_password: ${{ secrets.EMAIL_TRANSPORT_SMTP_PASSWORD }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Release (dry-run) | |
run: npm run release -- --dry-run | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |