Skip to content

Commit

Permalink
feat: first release
Browse files Browse the repository at this point in the history
  • Loading branch information
skarab42 committed Jul 13, 2022
1 parent 3e1ece7 commit 47cf3c9
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# These are supported funding model platforms

github: skarab42
custom: http://paypal.me/skarab
52 changes: 52 additions & 0 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: CI

on:
push:
branches:
- main
pull_request:
branches:
- '*'

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node: ['14']
typescript: ['4.6.3']
name: Test with TypeScript ${{ matrix.typescript }} on Node ${{ matrix.node }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- uses: pnpm/action-setup@v2.1.0
with:
version: 6.32.1
- run: pnpm install
- run: pnpm add typescript@${{ matrix.typescript }}
- run: pnpm test

publish:
if: ${{ github.ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
needs: [test]
strategy:
matrix:
node: ['14']
name: Build and publish on NPM
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- uses: pnpm/action-setup@v2.1.0
with:
version: 6.32.1
- run: pnpm install
- run: pnpm build
- run: pnpm semantic-release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 47cf3c9

Please sign in to comment.