Skip to content

Bump ws from 8.12.0 to 8.17.1 #75

Bump ws from 8.12.0 to 8.17.1

Bump ws from 8.12.0 to 8.17.1 #75

Workflow file for this run

# https://dev.to/vanwildemeerschbrent/how-to-deploy-to-github-pages-using-github-actions-57k8
# Name that will define how it shows up in
# your Github Action overview for this repository
name: Build and Deploy
# Defines what events the workflow will listen to in repository
# In this case commits and pull-requests on master-branch
on:
push:
branches: [main]
# What jobs will run in your workflow -> build_and_deploy
# Jobs can run in parallel or sequentially
jobs:
build_and_deploy:
# Type of runner that this job wil run on -> Linux Ubuntu
runs-on: ubuntu-latest
# Define which node version to use in the runner.
# Use node version 14.15.0, latest Node LTS version
strategy:
matrix:
node-version: [14.15.0]
# Steps that are part of the build_and_deploy job
# Steps represent a sequence of tasks that will be executed
steps:
# Action that will checkout repository so the workflow can
# access the codebase
- uses: actions/checkout@v2
with:
ref: main
# Action allowing caching of node_modules to improve
# workflow execution time
# {{runner.os}} will use defined runner 'ubuntu-latest'
- name: Cache node_modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
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 }}-
# Sets node environment for use in action
# {{matrix.node-version}} will use Github default Node.js
# version
- name: Node ${{matrix.node-version}}
uses: actions/setup-node@v1
with:
node-version: ${{matrix.node-version}}
# Run npm commands to install NPM packages
- name: Install dependencies
run: npm install
# Run npm build command for Vue project
- name: Build Project
run: npm run build
# please check out the docs of the workflow for more details
# @see https://github.com/crazy-max/ghaction-github-pages
- name: Deploy to GitHub Pages
uses: crazy-max/ghaction-github-pages@v2
with:
fqdn: lindb.io
# deploy to gh-pages branch
target_branch: release
# deploy the default output dir of VuePress
build_dir: docs/.vuepress/dist
env:
# @see https://docs.github.com/en/actions/reference/authentication-in-a-workflow#about-the-github_token-secret
GITHUB_TOKEN: ${{ secrets.API_TOKEN_GITHUB }}