-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (40 loc) · 1.27 KB
/
test.yml
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
name: On_Push_Testing
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test_build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Environment
uses: actions/setup-node@v3
with:
node-version: 18.1.0
- run: npm install
# - run: npm run build
- name: Verify that the Docker image for the action builds
run: docker build . --file Dockerfile
- name: Bump version and push tag
uses: anothrNick/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: true
DEFAULT_BUMP: patch
- name: change latest tag
uses: EndBug/latest-tag@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
with:
# You can change the name of the tag or branch with this input.
# Default: 'latest'
ref: 'latest'
# If a description is provided, the action will use it to create an annotated tag. If none is given, the action will create a lightweight tag.
# Default: ''
description: 'latest version of the rocrate-to-html.'
# Force-update a branch instead of using a tag.
# Default: false
force-branch: false