Skip to content

Commit

Permalink
Added lint-and-build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
DoctorMcKay committed Aug 20, 2024
1 parent cc912e6 commit ac7d4b9
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/lint-and-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Test and Build

on:
push:
branches:
# Only run on branch push, not tag push
- '**'
pull_request:

jobs:
lint:
# Run for external PRs, but not on our own internal PRs as they'll be run by the push to the branch.
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != 'DoctorMcKay/node-steam-appticket'

uses: DoctorMcKay/github-workflows/.github/workflows/eslint.yml@master
with:
node-version: 12.x

build:
# Run for external PRs, but not on our own internal PRs as they'll be run by the push to the branch.
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != 'DoctorMcKay/node-steam-appticket'

uses: DoctorMcKay/github-workflows/.github/workflows/npm-pack.yml@master
with:
node-version: 12.x
package-name: steam-appticket

publish:
needs: [ lint, build ]
if: success() && github.event.ref == 'refs/heads/master' && contains(github.event.head_commit.message, '#npm-publish')
uses: DoctorMcKay/github-workflows/.github/workflows/npm-publish.yml@master
secrets:
npm-access-token: ${{ secrets.NPM_ACCESS_TOKEN }}

0 comments on commit ac7d4b9

Please # to comment.