Skip to content

Commit

Permalink
feat: add ci/cd github action to run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
connorlindsey committed Jan 24, 2024
1 parent 2d6a3c1 commit dcfe995
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: CI/CD

on: [push]

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "18.x"
registry-url: "https://registry.npmjs.org"
scope: "@knocklabs"
- name: Install dependencies
run: yarn --frozen-lockfile
- name: Run tests
run: yarn test
8 changes: 4 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14.x'
registry-url: 'https://registry.npmjs.org'
scope: '@knocklabs'
node-version: "18.x"
registry-url: "https://registry.npmjs.org"
scope: "@knocklabs"
- run: yarn
- run: yarn publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit dcfe995

Please sign in to comment.