Skip to content

Commit

Permalink
chore: attempt to migrate ci from travis to workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Felix Mann committed Aug 23, 2023
1 parent 2b9dae9 commit d2a02d5
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 11 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/node.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Node.js CI

on:
push:
pull_request:

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18.x'
cache: 'yarn'
- name: Set dummy git user credentials
run: git config --global user.email [email protected] && git config --global user.name "Some Example"
- name: Install dependencies
run: yarn --immutable
- run: yarn test
release:
runs-on: ubuntu-latest
permissions:
contents: write # to be able to publish a GitHub release
needs: test
if: github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18.x'
cache: 'yarn'
- run: npx semantic-release-github-pr --debug
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release --debug
11 changes: 0 additions & 11 deletions .travis.yml

This file was deleted.

0 comments on commit d2a02d5

Please sign in to comment.