-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (50 loc) · 1.49 KB
/
ci.yaml
File metadata and controls
62 lines (50 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Build
on:
push:
branches: [main]
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Dependencies
run: npm ci
- name: Test
run: npm run test
- name: Build
run: npm run build
# version:
# needs: build
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - name: Bump version and push tag
# id: tag_version
# uses: mathieudutour/github-tag-action@v6.1
# with:
# github_token: ${{ secrets.CLASSIC_GIT_TOKEN }}
# - name: Setup Git
# run: |
# git config --global user.email "${{ github.actor }}@gmail.com"
# git config --global user.name "${{ github.actor }}"
# - name: Server version
# run: |
# npm version ${{ steps.tag_version.outputs.new_version }}
# git push
# - name: Create a GitHub release
# uses: ncipollo/release-action@v1.12.0
# with:
# tag: ${{ steps.tag_version.outputs.new_tag }}
# name: Release ${{ steps.tag_version.outputs.new_tag }}
# body: ${{ steps.tag_version.outputs.changelog }}
# token: ${{ secrets.CLASSIC_GIT_TOKEN }}