mirror of
https://github.com/sasjs/lint.git
synced 2025-12-10 17:34:36 +00:00
30 lines
831 B
YAML
30 lines
831 B
YAML
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
|
|
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
|
|
|
|
name: SASjs Lint Build and Publish
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
- name: Install Dependencies
|
|
run: npm ci
|
|
- name: Check Code Style
|
|
run: npm run lint
|
|
- name: Install rimraf
|
|
run: npm i -g rimraf
|
|
- name: Build Project
|
|
run: npm run build
|
|
- name: Semantic Release
|
|
uses: cycjimmy/semantic-release-action@v3
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|