Skip to content

Commit

Permalink
chore(.github): add auto-tag, auto-release & lint workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
gitmp01 committed May 19, 2022
1 parent 076d27a commit a87e2f5
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: "Create pre-release"

on:
create:
tags:

jobs:
create_prerelease:
runs-on: "ubuntu-latest"
steps:
- uses: "marvinpinto/[email protected]"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: true
15 changes: 15 additions & 0 deletions .github/workflows/create-tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Create Tag

on:
push:
branches: [ master ]

jobs:
create_tag:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: Klemensas/action-autotag@stable
with:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
tag_prefix: "v"
32 changes: 32 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Node.js CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x]

steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: ./package-lock.json
- run: git config --global url."https://${{ secrets.PROVABLE_MACHINE_GENERAL_PAT }}@github.com/".insteadOf ssh://[email protected]/
- run: npm ci

- name: Run linter
run: npm run lint

0 comments on commit a87e2f5

Please sign in to comment.