Skip to content

Commit

Permalink
Add CI workflow to test and publish packages
Browse files Browse the repository at this point in the history
  • Loading branch information
vierbergenlars committed Aug 8, 2023
1 parent 333b48c commit 585e9cc
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: build
on:
push:
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: "0"
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
scope: '@contentgrid'
- run: yarn install --frozen-lockfile
- name: Test
run: yarn test
- name: Publish
if: ${{ github.ref_type == 'tag' }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: yarn lerna publish ${{ github.ref_name }} --no-verify-access --yes --no-push

0 comments on commit 585e9cc

Please sign in to comment.