feat: add .npmrc #17
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: release docs CI | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [12.x] | |
steps: | |
- uses: actions/checkout@v1 | |
- name: 步骤:第一步 -> Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: 步骤:第二步 -> 安装依赖 | |
run: | | |
npm install | |
npm run build | |
env: | |
CI: true | |
- name: 步骤:第三步 -> 使用脚本部署 | |
env: | |
ACCESS_TOKEN_DEPLOY: ${{secrets.ACCESS_TOKEN }} | |
PUBLISH_BRANCH: gh-pages | |
PUBLISH_DIR: ./docs/.vuepress/dist | |
CNAME: editable.veaba.me | |
uses: veaba/[email protected] |