Skip to content

Commit

Permalink
ci: Switch to GitHub actions for CI (#44)
Browse files Browse the repository at this point in the history
* Switch to GitHub actions for CI

* More cautious dep updates

* Update based on review feedback
  • Loading branch information
microbit-matt-hillsdon authored Apr 18, 2024
1 parent 6337c46 commit 7713cd2
Show file tree
Hide file tree
Showing 4 changed files with 8,790 additions and 6,335 deletions.
76 changes: 0 additions & 76 deletions .circleci/config.yml

This file was deleted.

26 changes: 26 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: build
on:
release:
types: [created]
push:
branches:
- '**'
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
cache: npm
- run: npm ci
- run: npm run test:coverage
- run: npm run build
- run: npm publish
if: github.event_name == 'release' && github.event.action == 'created'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Loading

0 comments on commit 7713cd2

Please sign in to comment.