Skip to content

update mongodb

update mongodb #130

Workflow file for this run

name: CI
on:
push:
paths:
- '.github/**'
- 'src/**'
- 'webpack/**'
- 'package.json'
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: cache node modules
uses: actions/cache@v1
with:
path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: install
run: npm i
- name: lint
run: npm run lint
- name: test
run: npm t
- name: build
if: false
run: npm run build
- name: setup aliyun oss
if: false
uses: manyuanrong/setup-ossutil@master
with:
endpoint: ${{ secrets.oss_region }}
access-key-id: ${{ secrets.oss_app_key }}
access-key-secret: ${{ secrets.oss_app_secret }}
- name: cp files to aliyun
if: false
run: ossutil cp -rf dist/public oss://${{ secrets.oss_bucket }}/2/ --meta=Cache-Control:"public, max-age=2592000"#Content-Encoding:gzip