Skip to content

Commit

Permalink
feat: setup workflows & automatic releases (#3)
Browse files Browse the repository at this point in the history
* feat: setup workflows & automatic releases

* ci: add `release` config
  • Loading branch information
G-Rath authored May 19, 2022
1 parent a2ad9b1 commit 91a6d93
Show file tree
Hide file tree
Showing 4 changed files with 11,543 additions and 5 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Checks
on: [pull_request]

env:
# reduces noise from npm post-install scripts
DISABLE_OPENCOLLECTIVE: true
OPEN_SOURCE_CONTRIBUTOR: true

jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Commit Linter
uses: wagoid/commitlint-github-action@v4
with:
configFile: './package.json'
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18.x
cache: npm

- run: npm ci
- run: npm run validate
31 changes: 31 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Release
on:
push:
branches:
- main

env:
# reduces noise from npm post-install scripts
DISABLE_OPENCOLLECTIVE: true
OPEN_SOURCE_CONTRIBUTOR: true

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18.x
cache: npm

- name: install
run: npm ci
- name: validate
run: npm run validate

- name: release
run: npm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Loading

0 comments on commit 91a6d93

Please sign in to comment.