46 lines
1.0 KiB
YAML
46 lines
1.0 KiB
YAML
name: node-js
|
|
|
|
on:
|
|
push:
|
|
branches: [ main, master ]
|
|
pull_request:
|
|
branches: [ main, master ]
|
|
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
build:
|
|
name: Test
|
|
runs-on: ubuntu-20.04
|
|
strategy:
|
|
matrix:
|
|
node-version: [14.x]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
- name: Install Dependencies
|
|
run: |
|
|
npm install
|
|
- name: Build and Test
|
|
run: |
|
|
npm run build
|
|
npm test
|
|
# - name: Publish to release
|
|
# uses: softprops/action-gh-release@v1
|
|
# with:
|
|
# files: dist/*
|
|
# token: ${{ secrets.GITHUB_TOKEN }}
|
|
# body: |
|
|
# Changes in this Release
|
|
# - Added new feature
|
|
# - Fixed some bugs
|
|
# draft: false
|
|
# prerelease: false
|
|
# tag: v1.0.0
|