chore(ci): use `Node.js 14` to build project

This commit is contained in:
郭桓桓 2023-02-28 20:15:13 +08:00
parent 9572add1e3
commit 51f21ee9a7
Signed by: kuohuanhuan
GPG Key ID: FD846A0A797B0D75
1 changed files with 8 additions and 3 deletions

View File

@ -17,17 +17,22 @@ jobs:
with:
fetch-depth: 0
# Step II
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 14
# Step III
- name: Install Dependencies
run: npm ci
# Step III
# Step IV
- name: Build Project
run: npm run build
# Step IV
# Step V
- name: Publish to NPM Registry
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
# Step V
# Step VI
- name: Generate Changelog
run: npx changelogithub@0.12
env: