Skip to content

Commit

Permalink
Migrate CI to Github Actions (#582)
Browse files Browse the repository at this point in the history
* Migrate CI to Github Actions

* Publish
  • Loading branch information
jdebbink authored Sep 20, 2024
1 parent 1d1278e commit fef9ac2
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 63 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build

on:
push:
branches:
- master
tags:
- 'v*'
pull_request:
branches:
- master

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # 4.1.7
- name: Setup Node
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # 4.0.3
with:
node-version-file: .nvmrc
cache: 'yarn'
- name: Install dependencies
run: yarn install
- name: Lint
run: yarn lint
- name: Build
run: yarn build
- name: Test
run: yarn test
- name: Publish
if: startsWith(github.ref, 'refs/tags/v')
run: |
echo '//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}'>.npmrc
npm publish
62 changes: 0 additions & 62 deletions .gitlab-ci.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16.17.1
18.16.0

0 comments on commit fef9ac2

Please sign in to comment.