testtest/.github/workflows/main.yml

46 lines
1.0 KiB
YAML
Raw Permalink Normal View History

2024-02-27 00:15:12 +00:00
name: node-js
2024-02-26 23:51:21 +00:00
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
permissions:
contents: write
jobs:
2024-02-27 00:07:37 +00:00
build:
2024-02-27 00:32:49 +00:00
name: Test
runs-on: ubuntu-20.04
strategy:
matrix:
node-version: [14.x]
2024-02-26 23:51:21 +00:00
2024-02-27 00:32:49 +00:00
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
2024-02-27 00:34:35 +00:00
- name: Install Dependencies
run: |
npm install
- name: Build and Test
run: |
npm run build
npm test
2024-02-27 21:42:44 +00:00
# - 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